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

Method SetLayout

dali/c_api_2/data_objects.h:311–319  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

309 }
310
311 void SetLayout(const char *layout_string) override {
312 if (layout_string) {
313 TensorLayout layout(layout_string);
314 Validate(layout, t_->ndim());
315 t_->SetLayout(layout);
316 } else {
317 t_->SetLayout("");
318 }
319 }
320
321 const char *GetLayout() const override {
322 auto &layout = t_->GetLayout();

Callers 11

daliTensorSetLayoutFunction · 0.45
daliTensorListSetLayoutFunction · 0.45
ResizeMethod · 0.45
AttachBufferMethod · 0.45
ResizeMethod · 0.45
AttachBufferMethod · 0.45
AttachSamplesMethod · 0.45
SetLayoutMethod · 0.45
ViewAsTensorMethod · 0.45
SetExternalInputFunction · 0.45
SetExternalInputTensorsFunction · 0.45

Calls 2

ValidateFunction · 0.85
ndimMethod · 0.45

Tested by

no test coverage detected