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

Function TFE_Py_EncodeArg

tensorflow/tensorflow/python/eager/pywrap_tfe_src.cc:3452–3461  ·  view source on GitHub ↗

`defun` uses dtypes and shapes instead of `Tensors` as cache keys. Dtypes are used because TensorFlow graphs are not parametric w.r.t. dtypes. Shapes are used for both performance reasons, as much TensorFlow code specializes on known shapes to produce slimmer graphs, and correctness, as some high-level APIs require shapes to be fully-known. `include_tensor_ranks_only` allows caching on arguments

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

TFE_Py_EncodeArgHelperFunction · 0.85
ToPyTupleMethod · 0.80

Tested by

no test coverage detected