MCPcopy Create free account
hub / github.com/alibaba/nann / create_op

Method create_op

tensorflow/tensorflow/python/framework/func_graph.py:479–548  ·  view source on GitHub ↗

Like Graph.create_op, except handles external input tensors. This overload adds functionality to create_op to "capture" any external input tensors, i.e. tensors from the eager context or outer function graphs if this is a nested function. See `capture` for more information. Args:

(
      self,
      op_type,
      inputs,
      dtypes=None,  # pylint: disable=redefined-outer-name
      input_types=None,
      name=None,
      attrs=None,
      op_def=None,
      compute_shapes=True,
      compute_device=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 5

_capture_by_valueMethod · 0.95
captureMethod · 0.95
_create_op_internalMethod · 0.80
get_attrMethod · 0.45
AddValueMethod · 0.45

Tested by

no test coverage detected