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

Function PyShapeCheck

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

Shape

Source from the content-addressed store, hash-verified

248
249// Shape
250bool PyShapeCheck(PyObject* obj) { return PyLongSequenceCheck(obj); }
251
252Shape PyUnpackShape(PyObject* obj) {
253 bool is_tuple = PyTuple_Check(obj);

Callers

nothing calls this directly

Calls 1

PyLongSequenceCheckFunction · 0.85

Tested by

no test coverage detected