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

Function PyTensorObject_ref_index

oneflow/api/python/framework/tensor.cpp:660–662  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

658}
659
660static PyObject* PyTensorObject_ref_index(PyObject* self, void* unused) {
661 return functional::CastToPyObject(PyTensor_Unpack(self)->ref_index());
662}
663
664static int PyTensorObject_set_ref_index(PyObject* self, PyObject* index, void* unused) {
665 HANDLE_ERRORS

Callers

nothing calls this directly

Calls 2

CastToPyObjectFunction · 0.85
ref_indexMethod · 0.80

Tested by

no test coverage detected