MCPcopy Create free account
hub / github.com/Samsung/ONE / shape

Method shape

compiler/loco/src/IR/PermutingCodec.cpp:109–121  ·  view source on GitHub ↗

Permuting Encoder

Source from the content-addressed store, hash-verified

107// Permuting Encoder
108//
109FeatureShape PermutingEncoder<Domain::Feature>::shape(const TensorShape &in) const
110{
111 assert(valid() && "invalid permutation");
112
113 FeatureShape out;
114
115 out.count() = in.dim(_perm[FeatureAxis::Count]);
116 out.depth() = in.dim(_perm[FeatureAxis::Depth]);
117 out.height() = in.dim(_perm[FeatureAxis::Height]);
118 out.width() = in.dim(_perm[FeatureAxis::Width]);
119
120 return out;
121}
122
123TensorIndex PermutingEncoder<Domain::Feature>::value(const FeatureIndex &in) const
124{

Callers

nothing calls this directly

Calls 8

multiplierMethod · 0.80
validFunction · 0.70
countMethod · 0.45
dimMethod · 0.45
depthMethod · 0.45
heightMethod · 0.45
widthMethod · 0.45
rankMethod · 0.45

Tested by

no test coverage detected