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

Function copy_handle_data

tensorflow/tensorflow/python/ops/custom_gradient.py:44–82  ·  view source on GitHub ↗

Copies HandleData for variant and resource type tensors if available. The CppShapeInferenceResult::HandleData proto contains information about the shapes and types of the element tensors of resource/variant type tensors. We need to copy this across function boundaries, i.e., when capturing a

(source_t, target_t)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

_graph_mode_decoratorFunction · 0.85

Calls 2

_as_tf_outputMethod · 0.45
SerializeToStringMethod · 0.45

Tested by

no test coverage detected