| 454 | } |
| 455 | |
| 456 | bool TensorShapeOld::IsSameSize(const TensorShapeOld& b) const { |
| 457 | if (b.dims() != dims()) return false; |
| 458 | for (int d = 0; d < dims(); d++) { |
| 459 | if (dim_size(d) != b.dim_size(d)) return false; |
| 460 | } |
| 461 | return true; |
| 462 | } |
| 463 | |
| 464 | void TensorShapeOld::AsProto(TensorShapeProto* proto) const { |
| 465 | proto->Clear(); |