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

Method capture

tensorflow/contrib/compiler/xla.py:39–45  ·  view source on GitHub ↗
(self, o)

Source from the content-addressed store, hash-verified

37 self._object = None
38
39 def capture(self, o):
40 if self._object:
41 raise RuntimeError(
42 'InternalError: _CapturedObject can capture only once. Please file '
43 'bug.')
44
45 self._object = o
46
47 def get(self):
48 return self._object

Callers 2

train_stepMethod · 0.45
eval_stepMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected