| 581 | } |
| 582 | |
| 583 | shape shape::with_lens(type_t t, const std::vector<std::size_t>& l) const |
| 584 | { |
| 585 | if(this->dynamic()) |
| 586 | { |
| 587 | MIGRAPHX_THROW("SHAPE: with_lens() called on dynamic shape"); |
| 588 | } |
| 589 | assert(l.size() == this->lens().size()); |
| 590 | auto perm = find_permutation(*this); |
| 591 | return shape::from_permutation(t, l, perm); |
| 592 | } |
| 593 | |
| 594 | shape shape::with_lens(const std::vector<std::size_t>& l) const |
| 595 | { |