| 487 | |
| 488 | template <class Shape> |
| 489 | gtl::InlinedVector<int64, 4> TensorShapeBase<Shape>::dim_sizes() const { |
| 490 | gtl::InlinedVector<int64, 4> result; |
| 491 | for (auto dim : *this) { |
| 492 | result.push_back(dim.size); |
| 493 | } |
| 494 | return result; |
| 495 | } |
| 496 | |
| 497 | template <class Shape> |
| 498 | void TensorShapeBase<Shape>::set_dim(int d, int64 size) { |