| 488 | } |
| 489 | |
| 490 | static PyObject* PyTensorObject_cpu(PyObject* self, PyObject* unused) { |
| 491 | HANDLE_ERRORS |
| 492 | Optional<std::string> device = "cpu"; |
| 493 | return PyTensor_New(ASSERT_PTR(functional::To(PyTensor_Unpack(self), device, NullOpt, false))); |
| 494 | END_HANDLE_ERRORS |
| 495 | } |
| 496 | |
| 497 | static PyObject* PyTensorObject_cuda(PyObject* self, PyObject* args, PyObject* kwargs) { |
| 498 | HANDLE_ERRORS |
nothing calls this directly
no test coverage detected