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 provides documentation for the `TpuConnection` class, which is part of the Google Cloud TPU C++ client library, with version 2.28.0 being the focus of this page, however there are other versions available, ranging from 2.11.0 to 2.37.0-rc (latest)."],["The `TpuConnection` object is essential for interacting with the `TpuClient`, defining the user-facing methods for actions such as listing, getting, creating, deleting, reimaging, stopping, and starting nodes, as well as managing TensorFlow versions and accelerator types."],["Users can create a concrete `TpuConnection` instance using the `MakeTpuConnection()` function, and for testing purposes, they can utilize the `tpu_v1_mocks::MockTpuConnection` for mocking."],["The documentation lists the virtual functions the class provides such as; `options()`, `ListNodes()`, `GetNode()`, `CreateNode()`, `DeleteNode()`, `ReimageNode()`, `StopNode()`, `StartNode()`, `ListTensorFlowVersions()`, `GetTensorFlowVersion()`, `ListAcceleratorTypes()`, `GetAcceleratorType()` along with their respective parameters, and return types."],["The page details the full range of virtual methods for interacting with the TPU client, offering diverse methods to interact with the connection such as accepting a no await tag, or accepting a long running operation."]]],[]]