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

Function PyTensorObject_device

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

Source from the content-addressed store, hash-verified

715}
716
717static PyObject* PyTensorObject_device(PyObject* self, void* unused) {
718 HANDLE_ERRORS
719 return functional::CastToPyObject(PyTensor_Unpack(self)->device());
720 END_HANDLE_ERRORS
721}
722
723static PyObject* PyTensorObject_placement(PyObject* self, void* unused) {
724 HANDLE_ERRORS

Callers

nothing calls this directly

Calls 1

deviceMethod · 0.45

Tested by

no test coverage detected