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

Method create_op

tensorflow/python/framework/function.py:803–808  ·  view source on GitHub ↗
(self, op_type, inputs, dtypes=None, **kwargs)

Source from the content-addressed store, hash-verified

801 return var
802
803 def create_op(self, op_type, inputs, dtypes=None, **kwargs): # pylint: disable=redefined-outer-name
804 for i, x in enumerate(inputs):
805 if isinstance(x, ops.EagerTensor) or x.graph is not self:
806 inputs[i] = self.capture(x)
807 return super(_FuncGraph, self).create_op(op_type, inputs,
808 dtypes=dtypes, **kwargs)
809
810 def capture(self, tensor, name=None):
811 """Adds the given tensor to this graph and returns the captured tensor."""

Callers 2

_add_op_and_parentsMethod · 0.95
_callFunction · 0.45

Calls 1

captureMethod · 0.95

Tested by

no test coverage detected