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

Function PyUnpackDType

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

Source from the content-addressed store, hash-verified

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
234bool PyLayoutCheck(PyObject* obj) { return detail::isinstance_fast<Symbol<Layout>>(obj); }

Callers 6

PyTensorObject_castFunction · 0.85
PyTensorObject_typeFunction · 0.85
PyIInfo_newFunction · 0.85
PyFInfo_newFunction · 0.85
PyUnpackDTypeSequenceFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected