| 761 | #endif |
| 762 | |
| 763 | void Copy::add_input_layout_constraint() { |
| 764 | if (input(0)->comp_node() != output(0)->comp_node()) { |
| 765 | auto check = [this](const TensorLayout& layout) { |
| 766 | auto handle = intl::get_megdnn_handle(this->comp_node()); |
| 767 | return handle->check_cross_dev_copy_constraint(layout); |
| 768 | }; |
| 769 | input(0)->add_layout_constraint(check); |
| 770 | } |
| 771 | } |
| 772 | |
| 773 | void Copy::init_output_static_infer_desc() { |
| 774 | using namespace cg::static_infer; |
nothing calls this directly
no test coverage detected