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

Method GetDesc

dali/c_api_2/data_objects.h:353–362  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351 }
352
353 daliTensorDesc_t GetDesc() const override {
354 auto &shape = t_->shape();
355 daliTensorDesc_t desc{};
356 desc.ndim = shape.sample_dim();
357 desc.data = t_->raw_mutable_data();
358 desc.dtype = t_->type();
359 desc.layout = GetLayout();
360 desc.shape = shape.data();
361 return desc;
362 }
363
364 const TensorShape<> &GetShape() const & override {
365 return t_->shape();

Callers 1

daliTensorGetDescFunction · 0.80

Calls 5

shapeMethod · 0.45
sample_dimMethod · 0.45
raw_mutable_dataMethod · 0.45
typeMethod · 0.45
dataMethod · 0.45

Tested by

no test coverage detected