| 1597 | MEGDNN_OPR_INIT1(RelayoutFormat, "relayout_format") |
| 1598 | |
| 1599 | void RelayoutFormat::init_output_format() { |
| 1600 | TensorFormat src_fmt = input(0)->format(), dst_fmt; |
| 1601 | megdnn_opr()->deduce_format(src_fmt, dst_fmt); |
| 1602 | mgb_assert(output().size() == 2); |
| 1603 | output(0)->format(dst_fmt); |
| 1604 | output(1)->format({}); // default format |
| 1605 | } |
| 1606 | // f}}} |
| 1607 | // |
| 1608 |
nothing calls this directly
no test coverage detected