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

Method SetLayout

dali/c_api_2/data_objects.h:646–654  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

644 }
645
646 void SetLayout(const char *layout_string) override {
647 if (layout_string) {
648 TensorLayout layout(layout_string);
649 Validate(layout, tl_->sample_dim());
650 tl_->SetLayout(layout);
651 } else {
652 tl_->SetLayout("");
653 }
654 }
655
656 const char *GetLayout() const override {
657 auto &layout = tl_->GetLayout();

Callers

nothing calls this directly

Calls 3

ValidateFunction · 0.85
sample_dimMethod · 0.45
SetLayoutMethod · 0.45

Tested by

no test coverage detected