MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / LinearIndex

Method LinearIndex

tensorflow/lite/delegates/gpu/common/shape.cc:115–122  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

113
114template <>
115int64_t StrongShape<Layout::OHWI>::LinearIndex(
116 const std::array<int32_t, 4>& coordinates) const {
117 int64_t index = coordinates[0];
118 index = index * StrongShape::get(1) + coordinates[1];
119 index = index * StrongShape::get(2) + coordinates[2];
120 index = index * StrongShape::get(3) + coordinates[3];
121 return index;
122}
123
124} // namespace gpu
125} // namespace tflite

Callers 15

DataFromBHWCMethod · 0.45
DataToBHWCMethod · 0.45
RearrangeWeightsDataMethod · 0.45
RearrangeWeightsFP16Method · 0.45
RearrangeWeightsFP32Method · 0.45
RearrangeWeightsDataMethod · 0.45
RearrangeWeightsDataMethod · 0.45
RearrangeWeightsDataMethod · 0.45
RearrangeWeightsDataMethod · 0.45
RearrangeWeightsDataMethod · 0.45

Calls 1

getFunction · 0.50

Tested by

no test coverage detected