| 169 | } |
| 170 | |
| 171 | AxisVector Shape::ShiftNegativeAxisVec(const AxisVector& axis_vec) const { |
| 172 | const int64_t num_axes = this->NumAxes(); |
| 173 | AxisVector ret = axis_vec; |
| 174 | for (int64_t i = 0; i < axis_vec.size(); i++) { |
| 175 | ret.at(i) = ShiftNegativeAxis(axis_vec.at(i), num_axes); |
| 176 | } |
| 177 | return ret; |
| 178 | } |
| 179 | |
| 180 | Shape Shape::RemoveOnes(const AxisVector& axis_vec) const { |
| 181 | DimVector dim_vec; |
nothing calls this directly
no test coverage detected