| 121 | } |
| 122 | |
| 123 | std::string PyObjectToReprStr(PyObject* obj) { |
| 124 | PyObject* repr_obj = PyObject_Repr(obj); |
| 125 | std::string str = PyStringAsString(repr_obj); |
| 126 | Py_XDECREF(repr_obj); |
| 127 | return str; |
| 128 | } |
| 129 | |
| 130 | // Tensor list |
| 131 | bool PyTensorSequenceCheck(PyObject* obj) { |
no test coverage detected