| 47 | |
| 48 | template<class T> |
| 49 | bool ConstShapeMixIn<T>::Containing(ShapeView small_shape) const { |
| 50 | if (tp()->NumAxes() < small_shape.NumAxes()) { return false; } |
| 51 | FOR_RANGE(int, i, 0, small_shape.NumAxes()) { |
| 52 | if (tp()->At(i) != small_shape.At(i)) { return false; } |
| 53 | } |
| 54 | return true; |
| 55 | } |
| 56 | |
| 57 | template<class T> |
| 58 | bool ConstShapeMixIn<T>::MatchBeforeLastDim(ShapeView next_shape) const { |
no test coverage detected