| 113 | |
| 114 | template <> |
| 115 | int64_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 |
no test coverage detected