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

Method GetInputLayout

dali/operators/generic/join.cc:161–178  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

159
160template <typename Backend, bool new_axis>
161void TensorJoin<Backend, new_axis>::GetInputLayout(const Workspace &ws) {
162 input_layout_ = {};
163 if (new_axis && !has_axis_name_)
164 return;
165
166 int ninp = this->spec_.NumRegularInput();
167 for (int i = 0; i < ninp; i++) {
168 auto &in = ws.Input<Backend>(0);
169 TensorLayout tl = in.GetLayout();
170 if (!tl.empty()) {
171 if (!input_layout_.empty())
172 DALI_ENFORCE(input_layout_ == tl, make_string("All non-empty input layouts must match.\n"
173 "Offending values: \"", input_layout_, "\" and \"", tl, "\""));
174
175 input_layout_ = tl;
176 }
177 }
178}
179
180template <typename Backend, bool new_axis>
181void TensorJoin<Backend, new_axis>::SetOutputLayout(const Workspace &ws) {

Callers 7

ShouldExpandMethod · 0.45
HasPerFrameFiltersMethod · 0.45
HasPerFrameFillValuesMethod · 0.45
debayer.ccFile · 0.45
LayoutToTLFunction · 0.45
GetOutputLayoutMethod · 0.45

Calls 3

make_stringFunction · 0.50
GetLayoutMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected