Home
last modified time | relevance | path

Searched refs:PyIsInstance (Results 1 – 1 of 1) sorted by relevance

/external/tensorflow/tensorflow/python/lib/core/
Dpy_seq_tensor.cc32 inline bool PyIsInstance(PyObject* obj, PyTypeObject* t) { in PyIsInstance() function
47 PyIsInstance(obj, &PyIntegerArrType_Type); // NumPy integers in IsPyInt()
50 PyIsInstance(obj, &PyIntegerArrType_Type); // NumPy integers in IsPyInt()
55 return PyIsInstance(obj, &PyDoubleArrType_Type); // NumPy double type. in IsPyDouble()
59 return PyIsInstance(obj, &PyHalfArrType_Type); in IsNumpyHalf()
64 PyIsInstance(obj, &PyFloatingArrType_Type); // NumPy float types in IsPyFloat()
184 } else if (PyBool_Check(obj) || PyIsInstance(obj, &PyBoolArrType_Type)) { in InferShapeAndType()
192 PyIsInstance(obj, &PyComplexFloatingArrType_Type)) { // NumPy in InferShapeAndType()
305 if (PyIsInstance(v, &PyIntegerArrType_Type)) { // NumPy integers in ConvertOneInt64()
331 } else if (PyIsInstance(v, &PyIntegerArrType_Type)) { // NumPy integers in ConvertOneInt32()
[all …]