| 545 | } |
| 546 | |
| 547 | std::vector<shape> try_compute_shape(const operation& op, const std::vector<shape>& inputs) |
| 548 | { |
| 549 | shape new_shape; |
| 550 | try |
| 551 | { |
| 552 | new_shape = op.compute_shape(inputs); |
| 553 | } |
| 554 | catch(...) |
| 555 | { |
| 556 | return {}; |
| 557 | } |
| 558 | return {new_shape}; |
| 559 | } |
| 560 | |
| 561 | migraphx::instruction* as_address(const std::list<instruction>::iterator& ins) noexcept |
| 562 | { |