MCPcopy Create free account
hub / github.com/benoitsteiner/tensorflow-opencl / as_graph_element

Method as_graph_element

tensorflow/python/framework/ops.py:3051–3084  ·  view source on GitHub ↗

Returns the object referred to by `obj`, as an `Operation` or `Tensor`. This function validates that `obj` represents an element of this graph, and gives an informative error message if it is not. This function is the canonical way to get/validate an object of one of the allowed ty

(self, obj, allow_tensor=True, allow_operation=True)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 15

_testScopedImportMethod · 0.95
testClearDevicesMethod · 0.95
get_operation_by_nameMethod · 0.95
get_tensor_by_nameMethod · 0.95
control_dependenciesMethod · 0.95
_testScopedRestoreMethod · 0.95
_as_graph_elementFunction · 0.80
copy_op_to_graphFunction · 0.80
get_copied_opFunction · 0.80

Calls 1