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

Function PyTensor_Check

oneflow/api/python/framework/tensor.h:38–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

36}
37
38inline bool PyTensor_Check(PyObject* op) { return PyObject_TypeCheck(op, PyTensorObject_Type); }
39
40inline bool PyTensor_CheckExact(PyObject* op) {
41 return op->ob_type == PyTensorObject_Type || op->ob_type == PyParameterObject_Type;

Callers 15

PyTensorObject_newFunction · 0.85
PyTensorObject_setitemFunction · 0.85
tensor.hFile · 0.85
loadMethod · 0.85
loadMethod · 0.85
UnpackTensorTupleFunction · 0.85
UnpackIndexItemFunction · 0.85
PyTensorSequenceCheckFunction · 0.85
PyScalarTensorCheckFunction · 0.85
PyTensorIndexCheckFunction · 0.85
PyUnpackTensorIndexFunction · 0.85
TypeCheckMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected