Skip to content

Commit

Permalink
Fix Convert IR (#189)
Browse files Browse the repository at this point in the history
* nit

* add docs

* fix memcpy annotation; fix conv2d ir; fix frontend convert

* code style

* add check symmetric padding

* Fix Convert IR

Co-authored-by: yuqing <[email protected]>
  • Loading branch information
jlxue and xiayuqing0622 authored Dec 22, 2020
1 parent 61418e9 commit 392811e
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,9 @@ REGISTER_OP(Convert)
<< op->get_convert_element_type().c_type_string();

return op::create_code_from_template(
"@output0@@data_layout@ = @input0@@[email protected](\"@out_dtype@\");",
{{"data_layout", op::create_layout_from_dims(gnode->get_output_shape(0))},
"@output0@@data_layout@ = @input0@@[email protected](`@out_dtype@`);",
{{"data_layout",
vector_to_string<std::vector<std::string>>(
op::create_layout_from_dims(gnode->get_output_shape(0)))},
{"out_dtype", out_dtype}});
});

0 comments on commit 392811e

Please sign in to comment.