Helper functions to make methods more readable.
| 75 | |
| 76 | // Helper functions to make methods more readable. |
| 77 | inline int64 GetDim(absl::Span<const int64> data, DimIndex dim) { |
| 78 | return data.rbegin()[static_cast<int64>(dim)]; |
| 79 | } |
| 80 | |
| 81 | inline void SetDim(absl::Span<int64> data, DimIndex dim, int64 value) { |
| 82 | data.rbegin()[static_cast<int64>(dim)] = value; |
no test coverage detected