MCPcopy Create free account
hub / github.com/NVIDIA/DALI / TensorLayoutRepr

Function TensorLayoutRepr

dali/python/backend_impl.cc:154–160  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

152}
153
154static 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
162static py::object PyLongFromVoidPtr(void *ptr) {
163 return py::reinterpret_steal<py::object>(PyLong_FromVoidPtr(ptr));

Callers

nothing calls this directly

Calls 3

escape_stringFunction · 0.85
strMethod · 0.80
c_strMethod · 0.45

Tested by

no test coverage detected