| 152 | } |
| 153 | |
| 154 | static string TensorLayoutRepr(const TensorLayout &tl) { |
| 155 | std::stringstream ss; |
| 156 | ss << "nvidia.dali.types.TensorLayout('"; |
| 157 | escape_string(ss, tl.c_str()); |
| 158 | ss << "')"; |
| 159 | return ss.str(); |
| 160 | } |
| 161 | |
| 162 | static py::object PyLongFromVoidPtr(void *ptr) { |
| 163 | return py::reinterpret_steal<py::object>(PyLong_FromVoidPtr(ptr)); |
nothing calls this directly
no test coverage detected