Skip to content

Commit

Permalink
[Frontend][PaddlePaddle] Fix bug for paddle frontend (apache#9236)
Browse files Browse the repository at this point in the history
* add part of operators

* remove part of operators

* add lookup

* add test

* Update paddlepaddle.py

* modify error message for SAME padding

* Remove some function and old version operator

* Remove some function and old version operator

* Remove some function and old version operator

* Remove some function and old version operator

* add dot test

* modify doc

* remove unreviewed code

* Update paddlepaddle.py

* Update test_forward.py

* Update paddlepaddle.py

* Update paddlepaddle.py

* Update test_forward.py

* Update test_forward.py

* add more cases for tests

* add more cases for tests

* remove annotation

* reduce test case sizes

* fix bug for paddlepaddle frontend
  • Loading branch information
jiangjiajun authored and ylc committed Jan 13, 2022
1 parent 7de983d commit 94f67be
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/tvm/relay/frontend/paddlepaddle.py
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,9 @@ def convert_feed(g, op, block):

if block is not None:
ipt_name = op.output("Out")[0]
dtype = op.attr("dtype")
dtype = _convert_dtype_value(dtype)
ipt_shape = block.var(ipt_name).shape
ipt_dtype = block.var(ipt_name).dtype
ipt_dtype = str(ipt_dtype).strip().split(".")[1]
else:
ipt_shape = op.shape
ipt_dtype = str(op.dtype).strip().split(".")[1]
Expand Down

0 comments on commit 94f67be

Please sign in to comment.