MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / context

Method context

tensorflow/python/framework/subscribe_test.py:363–364  ·  view source on GitHub ↗
(tensor)

Source from the content-addressed store, hash-verified

361 branch = ops.get_default_graph().get_tensor_by_name('cond/then:0')
362
363 def context(tensor):
364 return tensor.op._get_control_flow_context()
365
366 self.assertIs(context(x1), context(x2))
367 self.assertIsNot(context(x1), context(branch))

Callers 15

initialize_tpu_systemFunction · 0.45
__init__Method · 0.45
_compareMethod · 0.45
maybe_set_lowering_attrFunction · 0.45
output_all_intermediatesFunction · 0.45
__init__Method · 0.45
_ctxMethod · 0.45
_SumGradFunction · 0.45
record_ifFunction · 0.45
get_stepFunction · 0.45

Calls 1

Tested by

no test coverage detected