| 433 | // specified 'dimension' according to 'tensor_format'. |
| 434 | template <typename T> |
| 435 | T GetTensorDim(gtl::ArraySlice<T> dimension_attributes, |
| 436 | TensorFormat tensor_format, char dimension) { |
| 437 | int index = |
| 438 | GetTensorDimIndex(tensor_format, dimension, dimension_attributes.size()); |
| 439 | return dimension_attributes[index]; |
| 440 | } |
| 441 | |
| 442 | // Return the element from 'dimension_attribute' that corresponds to the |
| 443 | // specified 'dimension' according to 'filter_tensor_format'. |
no test coverage detected