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

Method empty

tensorboard/auth.py:64–73  ·  view source on GitHub ↗

Create an auth context with no registered providers. Returns: A new `AuthContext` value for which any call to `get` will fail with a `KeyError`.

(cls)

Source from the content-addressed store, hash-verified

62
63 @classmethod
64 def empty(cls):
65 """Create an auth context with no registered providers.
66
67 Returns:
68 A new `AuthContext` value for which any call to `get` will
69 fail with a `KeyError`.
70 """
71 # Use an empty dict for the environ. This is not a valid WSGI
72 # environment, but it doesn't matter because it's never used.
73 return cls({}, {})
74
75 def get(self, provider_key):
76 """Get an auth token from the auth provider with the given key.

Callers 7

__init__Method · 0.80
onWheelMethod · 0.80
headMethod · 0.80
selectOrCreateChildFunction · 0.80
getGradientFunction · 0.80
buildGroupForSceneFunction · 0.80
make_tensor_protoFunction · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected