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

Function _copy_source

tensorflow/tensorflow/python/eager/lift_to_graph.py:145–202  ·  view source on GitHub ↗

Create a source in a graph based on a Tensor from a different graph. This function creates a placeholder analog of `s` in a graph with the following behavior: 1) If s is a captured Tensor or Variable and handle_captures is set to True, simply capture it in the new graph as well. 2) I

(s, graph, op_map, handle_captures, inverse_captures,
                 base_graph)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

lift_to_graphFunction · 0.85

Calls 6

_constant_inputsFunction · 0.85
_copy_non_sourceFunction · 0.85
captureMethod · 0.45
formatMethod · 0.45
deviceMethod · 0.45
placeholderMethod · 0.45

Tested by

no test coverage detected