MCPcopy Create free account
hub / github.com/alibaba/nann / as_default

Method as_default

tensorflow/tensorflow/python/client/session.py:791–844  ·  view source on GitHub ↗

Returns a context manager that makes this object the default session. Use with the `with` keyword to specify that calls to `tf.Operation.run` or `tf.Tensor.eval` should be executed in this session. ```python c = tf.constant(..) sess = tf.compat.v1.Session() with sess.a

(self)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

_benchmarkFeedMethod · 0.45
_benchmarkFetchMethod · 0.45
_benchmarkRunOpMethod · 0.45
__init__Method · 0.45
__enter__Method · 0.45
__init__Method · 0.45
testUseExistingGraphMethod · 0.45
testUseDefaultGraphMethod · 0.45
testNotEnteredMethod · 0.45
testSharedGraphMethod · 0.45

Calls

no outgoing calls