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

Method identity

tensorflow/python/ops/tensor_array_ops.py:1044–1052  ·  view source on GitHub ↗

Returns a TensorArray with the same content and properties. Returns: A new TensorArray object with flow that ensures the control dependencies from the contexts will become control dependencies for writes, reads, etc. Use this object all for subsequent operations.

(self)

Source from the content-addressed store, hash-verified

1042 return self._implementation._infer_shape
1043
1044 def identity(self):
1045 """Returns a TensorArray with the same content and properties.
1046
1047 Returns:
1048 A new TensorArray object with flow that ensures the control dependencies
1049 from the contexts will become control dependencies for writes, reads, etc.
1050 Use this object all for subsequent operations.
1051 """
1052 return self._implementation.identity()
1053
1054 def grad(self, source, flow=None, name=None):
1055 return self._implementation.grad(source, flow=flow, name=name)

Callers 15

fnMethod · 0.95
AddOpMethod · 0.45
testIsInContextMethod · 0.45
_benchmarkFeedMethod · 0.45
testCreateMethod · 0.45
testErrorBasedOnMethod · 0.45
testFeedSparseTensorMethod · 0.45

Calls

no outgoing calls

Tested by 15

fnMethod · 0.76
testIsInContextMethod · 0.36
testCreateMethod · 0.36
testErrorBasedOnMethod · 0.36
testFeedSparseTensorMethod · 0.36
testFeedIndexedSlicesMethod · 0.36
testFeedAndFetchMethod · 0.36