Searched refs:PyIsInstance (Results 1 – 1 of 1) sorted by relevance
/external/tensorflow/tensorflow/python/lib/core/ |
D | py_seq_tensor.cc | 39 inline bool PyIsInstance(PyObject* obj, PyTypeObject* t) { in PyIsInstance() function 54 PyIsInstance(obj, &PyIntegerArrType_Type); // NumPy integers in IsPyInt() 57 PyIsInstance(obj, &PyIntegerArrType_Type); // NumPy integers in IsPyInt() 62 return PyIsInstance(obj, &PyDoubleArrType_Type); // NumPy double type. in IsPyDouble() 66 return PyIsInstance(obj, &PyHalfArrType_Type); in IsNumpyHalf() 71 PyIsInstance(obj, &PyFloatingArrType_Type); // NumPy float types in IsPyFloat() 192 } else if (PyBool_Check(obj) || PyIsInstance(obj, &PyBoolArrType_Type)) { in InferShapeAndType() 200 PyIsInstance(obj, &PyComplexFloatingArrType_Type)) { // NumPy in InferShapeAndType() 342 if (PyIsInstance(v, &PyIntegerArrType_Type)) { // NumPy integers in ConvertScalar() 379 if (PyIsInstance(v, &PyIntegerArrType_Type)) { // NumPy integers in ConvertScalar() [all …]
|