Get common shape dim, DCHECKing that they all agree.
| 430 | |
| 431 | // Get common shape dim, DCHECKing that they all agree. |
| 432 | inline int MatchingDim(const RuntimeShape& shape1, int index1, |
| 433 | const RuntimeShape& shape2, int index2) { |
| 434 | TFLITE_DCHECK_EQ(shape1.Dims(index1), shape2.Dims(index2)); |
| 435 | return std::min(shape1.Dims(index1), shape2.Dims(index2)); |
| 436 | } |
| 437 | |
| 438 | template <typename... Args> |
| 439 | int MatchingDim(const RuntimeShape& shape1, int index1, |