| 12 | BatchShape::BatchShape(int dim) : dim_(dim), nodim_(false), num_sample_(0) {}; |
| 13 | |
| 14 | int64_t BatchShape::size() const { |
| 15 | int64_t size = 1; |
| 16 | for (auto dim : shape_) { |
| 17 | size *= dim; |
| 18 | } |
| 19 | return size; |
| 20 | } |
| 21 | |
| 22 | const std::vector<int64_t>& BatchShape::shape() const { |
| 23 | return shape_; |
no outgoing calls
no test coverage detected