| 642 | } |
| 643 | |
| 644 | void TensorWrapper::_set_format(PyObject* dest) { |
| 645 | auto py_dest = py::reinterpret_borrow<py::object>(dest); |
| 646 | auto format = py_dest.cast<std::string>(); |
| 647 | m_tensor->set_format(format); |
| 648 | } |
| 649 | |
| 650 | void TensorWrapper::_as_format(PyObject* dest) { |
| 651 | auto py_dest = py::reinterpret_borrow<py::object>(dest); |