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

Function IsPyFloat

tensorflow/python/lib/core/py_seq_tensor.cc:63–66  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63bool IsPyFloat(PyObject* obj) {
64 return PyFloat_Check(obj) ||
65 PyIsInstance(obj, &PyFloatingArrType_Type); // NumPy float types
66}
67
68// If the input is a zero dimensional PyArray return it converted to a scalar.
69// Otherwise return the input and increment its reference count.

Callers 4

InferShapeAndTypeFunction · 0.85
ConvertOneInt64Function · 0.85
ConvertOneUint64Function · 0.85
ConvertOneInt32Function · 0.85

Calls 1

PyIsInstanceFunction · 0.85

Tested by

no test coverage detected