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

Function py_func_common

tensorflow/tensorflow/python/ops/script_ops.py:428–495  ·  view source on GitHub ↗

Wraps a python function and uses it as a TensorFlow op. Given a python function `func`, which takes numpy arrays as its arguments and returns numpy arrays as its outputs, wrap this function as an operation in a TensorFlow graph. The following snippet constructs a simple TensorFlow graph tha

(func, inp, Tout, stateful=True, name=None)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

py_funcFunction · 0.85
numpy_functionFunction · 0.85

Calls 5

_internal_py_funcFunction · 0.85
executing_eagerlyMethod · 0.80
funcFunction · 0.50
numpyMethod · 0.45
flattenMethod · 0.45

Tested by

no test coverage detected