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

Function empty_shape

include/dali/core/tensor_shape.h:328–331  ·  view source on GitHub ↗

* @brief Return empty shape of specified dimensionality */

Source from the content-addressed store, hash-verified

326 * @brief Return empty shape of specified dimensionality
327 */
328 static TensorShape empty_shape(int dim = ndim) {
329 assert(dim > 0 && "0D always has exectly 1 element");
330 return filled_shape(dim, 0);
331 }
332
333 /**
334 * @brief Return shape of specified dimensionality filled with value

Callers 3

SetupImplMethod · 0.85
AsTensorMethod · 0.85
resize_tensorsMethod · 0.85

Calls 1

filled_shapeFunction · 0.85

Tested by

no test coverage detected