Returns the size of the dimension at the given index.
| 403 | |
| 404 | // Returns the size of the dimension at the given index. |
| 405 | int64 dim(int64 n) const { |
| 406 | CHECK((size_t)n < sizes_.size()); |
| 407 | return sizes_[n]; |
| 408 | } |
| 409 | |
| 410 | // Returns a vector containing the dimensions of the array. |
| 411 | const std::vector<int64>& dimensions() const { return sizes_; } |