MCPcopy Create free account
hub / github.com/Oneflow-Inc/oneflow / PyLongSequenceCheck

Function PyLongSequenceCheck

oneflow/api/python/functional/common.cpp:98–101  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

96}
97
98bool PyLongSequenceCheck(PyObject* obj) {
99 return PySequenceCheck(
100 obj, [](PyObject* item) { return PyLong_Check(item) || PyIntegerScalarTensorCheck(item); });
101}
102
103bool PyFloatSequenceCheck(PyObject* obj) {
104 return PySequenceCheck(obj, [](PyObject* item) {

Callers 5

PyTensorObject_varFunction · 0.85
PyTensorObject_stdFunction · 0.85
PyShapeCheckFunction · 0.85
PyShapeSequenceCheckFunction · 0.85
TypeCheckMethod · 0.85

Calls 1

PySequenceCheckFunction · 0.85

Tested by

no test coverage detected