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

Function _constant_inputs

tensorflow/python/eager/lift_to_graph.py:42–45  ·  view source on GitHub ↗
(op_or_tensor)

Source from the content-addressed store, hash-verified

40
41
42def _constant_inputs(op_or_tensor):
43 return all(_as_operation(i).type == u"Const"
44 and not _as_operation(i).control_inputs
45 for i in op_selector.graph_inputs(_as_operation(op_or_tensor)))
46
47
48# Represents an input to `copied_op` which must be updated once

Callers 1

_copy_sourceFunction · 0.85

Calls 2

allFunction · 0.85
_as_operationFunction · 0.70

Tested by

no test coverage detected