Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Relay][Bugfix] fix the wrong calculate logic of operator flip in PyT…
…orch frontend (#15752) The original implementation of Flip in PyTorch converter mistaken the type of attribute `axis` in the Flip operator as an integer. Thus, It only parses the first element of the `axis` and will give a wrong calculation result when the length of `axis` is more than one. According to the PyTorch documentation [here](https://pytorch.org/docs/stable/generated/torch.flip.html), the type of `axis` is a list or tuple. This PR corrected the incorrect implementation of the algorithm of `torch.flip` converter and added a regression test.
- Loading branch information