MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / CheckOneInput

Function CheckOneInput

tensorflow/python/eager/pywrap_tfe_src.cc:2163–2174  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2161}
2162
2163bool CheckOneInput(PyObject* item) {
2164 if (EagerTensor_CheckExact(item) || CheckResourceVariable(item) ||
2165 PyArray_Check(item) || IsNumberType(item)) {
2166 return true;
2167 }
2168
2169 // Sequences are not properly handled. Sequences with purely python numeric
2170 // types work, but sequences with mixes of EagerTensors and python numeric
2171 // types don't work.
2172 // TODO(nareshmodi): fix
2173 return false;
2174}
2175
2176bool CheckInputsOk(PyObject* seq, int start_index,
2177 const tensorflow::OpDef& op_def) {

Callers 1

CheckInputsOkFunction · 0.85

Calls 2

CheckResourceVariableFunction · 0.85
IsNumberTypeFunction · 0.85

Tested by

no test coverage detected