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

Function _eager_identity

tensorflow/python/framework/constant_op.py:60–65  ·  view source on GitHub ↗

Eager-only version of Identity op; requires tensor is an eager Tensor.

(tensor, ctx)

Source from the content-addressed store, hash-verified

58
59
60def _eager_identity(tensor, ctx):
61 """Eager-only version of Identity op; requires tensor is an eager Tensor."""
62 attrs = ("T", tensor.dtype.as_datatype_enum)
63 result, = execute.execute(
64 b"Identity", 1, inputs=[tensor], attrs=attrs, ctx=ctx)
65 return result
66
67
68def convert_to_eager_tensor(value, ctx, dtype=None):

Callers 1

_constant_implFunction · 0.85

Calls 1

executeMethod · 0.45

Tested by

no test coverage detected