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

Method copy

tensorflow/python/framework/traceable_stack.py:131–139  ·  view source on GitHub ↗

Return a copy of self referencing the same objects but in a new list. This method is implemented to support thread-local stacks. Returns: TraceableStack with a new list that holds existing objects.

(self)

Source from the content-addressed store, hash-verified

129 return len(self._stack)
130
131 def copy(self):
132 """Return a copy of self referencing the same objects but in a new list.
133
134 This method is implemented to support thread-local stacks.
135
136 Returns:
137 TraceableStack with a new list that holds existing objects.
138 """
139 return TraceableStack(self._stack)

Callers 15

__init__Method · 0.45
inner_cmMethod · 0.45
with_control_flow_v2Function · 0.45
decoratorFunction · 0.45
numpyMethod · 0.45
_colocation_dictMethod · 0.45
_control_inputsMethod · 0.45
_gpu_stream_stackMethod · 0.45
_colocation_stackMethod · 0.45
decoratorFunction · 0.45
decoratedFunction · 0.45

Calls 1

TraceableStackClass · 0.85

Tested by 5

with_control_flow_v2Function · 0.36
decoratorFunction · 0.36
decoratorFunction · 0.36
decoratedFunction · 0.36
execute_test_methodFunction · 0.36