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

Function ConvertToTensor

tensorflow/tensorflow/python/eager/pywrap_tfe_src.cc:2688–2718  ·  view source on GitHub ↗

Supports 3 cases at the moment: i) input is an EagerTensor. ii) input is a ResourceVariable - in this case, the is_variable param is set to true. iii) input is an arbitrary python list/tuple (note, this handling doesn't support packing). NOTE: dtype_hint_getter must *always* return a PyObject that can be decref'd. So if no hint is found, Py_RETURN_NONE (which correctly increfs Py_None). NOTE: Th

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

AddInputToOpFunction · 0.70
TFE_Py_FastPathExecute_CFunction · 0.70

Calls 8

EagerTensor_CheckExactFunction · 0.85
CheckResourceVariableFunction · 0.85
ConvertToEagerTensorFunction · 0.85
EagerTensorFromHandleFunction · 0.85
TFE_TensorHandleDataTypeFunction · 0.85
ReadVariableOpFunction · 0.70
resetMethod · 0.45

Tested by

no test coverage detected