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

Function is_constant

tensorflow/python/framework/constant_op.py:275–280  ·  view source on GitHub ↗
(tensor_or_op)

Source from the content-addressed store, hash-verified

273
274
275def is_constant(tensor_or_op):
276 if isinstance(tensor_or_op, ops.Tensor):
277 op = tensor_or_op.op
278 else:
279 op = tensor_or_op
280 return op.type == "Const"
281
282
283def _constant_tensor_conversion_function(v, dtype=None, name=None,

Callers 4

is_literalFunction · 0.85
ToStringMethod · 0.85
is_readonlyMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected