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

Function TensorSize_Check

oneflow/api/python/framework/size.cpp:168–168  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

166};
167
168int TensorSize_Check(PyObject* p) { return p && p->ob_type == &TensorSize_Type; }
169
170PyObject* TensorSize_New(Py_ssize_t len) { return TensorSize_Type.tp_alloc(&TensorSize_Type, len); }
171

Callers 5

TensorSize_AsShapeFunction · 0.85
raw_shapeMethod · 0.85
loadMethod · 0.85
operator()Method · 0.85
operator()Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected