MCPcopy Create free account
hub / github.com/tensorflow/tensorboard / version_metadata

Function version_metadata

tensorboard/util/grpc_util.py:251–260  ·  view source on GitHub ↗

Creates gRPC invocation metadata encoding the TensorBoard version. Usage: `stub.MyRpc(request, metadata=version_metadata())`. Returns: A tuple of key-value pairs (themselves 2-tuples) to be passed as the `metadata` kwarg to gRPC stub API methods.

()

Source from the content-addressed store, hash-verified

249
250
251def version_metadata():
252 """Creates gRPC invocation metadata encoding the TensorBoard version.
253
254 Usage: `stub.MyRpc(request, metadata=version_metadata())`.
255
256 Returns:
257 A tuple of key-value pairs (themselves 2-tuples) to be passed as the
258 `metadata` kwarg to gRPC stub API methods.
259 """
260 return ((_VERSION_METADATA_KEY, version.VERSION),)
261
262
263def extract_version(metadata):

Callers 2

async_callFunction · 0.85
call_with_retriesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…