This interface defines virtual methods for each of the user-facing overload sets in TpuClient. This allows users to inject custom behavior (e.g., with a Google Mock object) when writing tests that use objects of type TpuClient.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-03-14 UTC."],[[["This webpage details the `TpuConnection` object, which acts as an interface defining virtual methods for all user-facing overload sets within the `TpuClient`."],["The page provides access to various versions of the `TpuConnection` class, ranging from version 2.11.0 up to the latest release candidate, 2.37.0-rc, and including the most recently available version of 2.22.0."],["`TpuConnection` enables the injection of custom behavior for testing purposes, like utilizing Google Mock objects with `TpuClient`."],["The page outlines a comprehensive list of virtual functions available in `TpuConnection`, including operations such as managing nodes, handling accelerator types, and getting runtime versions, that return different types such as `Options`, `StreamRange`, `StatusOr`, or `future`."],["The `MakeTpuConnection()` function and the `tpu_v2_mocks::MockTpuConnection` class, are provided for the creation of concrete instances and mocking for testing, respectively."]]],[]]