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

Function _eager_fill

tensorflow/python/framework/constant_op.py:49–57  ·  view source on GitHub ↗

Eager-only version of Fill op; requires value is an eager Tensor.

(dims, value, ctx)

Source from the content-addressed store, hash-verified

47
48
49def _eager_fill(dims, value, ctx):
50 """Eager-only version of Fill op; requires value is an eager Tensor."""
51 attr_t = value.dtype.as_datatype_enum
52 dims = convert_to_eager_tensor(dims, ctx, dtypes.int32)
53 inputs_flat = [dims, value]
54 attrs = ("T", attr_t, "index_type", types_pb2.DT_INT32)
55 result, = execute.execute(
56 b"Fill", 1, inputs=inputs_flat, attrs=attrs, ctx=ctx)
57 return result
58
59
60def _eager_identity(tensor, ctx):

Callers 1

_constant_implFunction · 0.85

Calls 2

convert_to_eager_tensorFunction · 0.85
executeMethod · 0.45

Tested by

no test coverage detected