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

Function PyDTypeCheck

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

DType

Source from the content-addressed store, hash-verified

228
229// DType
230bool PyDTypeCheck(PyObject* obj) { return detail::isinstance_fast<Symbol<DType>>(obj); }
231Symbol<DType> PyUnpackDType(PyObject* obj) { return *detail::cast_fast<Symbol<DType>*>(obj); }
232
233// Layout

Callers 6

PyTensorObject_castFunction · 0.85
PyTensorObject_typeFunction · 0.85
PyIInfo_newFunction · 0.85
PyFInfo_newFunction · 0.85
PyDTypeSequenceCheckFunction · 0.85
TypeCheckMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected