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

Function IsInteger

tensorflow/python/eager/pywrap_tfe_src.cc:179–185  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

177}
178
179bool IsInteger(PyObject* py_value) {
180#if PY_MAJOR_VERSION >= 3
181 return PyLong_Check(py_value);
182#else
183 return PyInt_Check(py_value);
184#endif
185}
186
187// This function considers a Dimension._value of None to be valid, and sets the
188// value to be -1 in that case.

Callers 2

ParseDimensionValueFunction · 0.85
ParseTypeValueFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected