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

Function as_py_list

dali/python/backend_impl.cc:132–138  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

130
131template <int ndim>
132py::list as_py_list(const TensorShape<ndim> &shape) {
133 py::list ret(shape.size());
134 for (int i = 0; i < shape.size(); i++) {
135 ret[i] = shape[i];
136 }
137 return ret;
138}
139
140template <typename Backend>
141py::list py_shape(const Tensor<Backend> &t) {

Callers 2

py_shapeFunction · 0.85
py_shape_listFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected