Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed ONNX Pad bug and Add some op #747

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from

Conversation

wjj19950828
Copy link
Collaborator

@wjj19950828 wjj19950828 commented Feb 10, 2022

Create A Good Pull Request

下面的文字请保留在PR说明的最后面,并在提完PR后,根据实际情况勾选确认以下情况

Please check the follow step before merging this pull request

  • Python code style verification
  • Review all the code diff by yourself
  • All models(TensorFLow/Caffe/ONNX/PyTorch) testing passed
  • Details about your pull request, releated issues

If this PR add new model support, please update model_zoo.md and add model to out test model zoos(@wjj19950828)

  • New Model Supported
  • No New Model Supported

Do follow contributes

1、Fixed Pad op bug
2、Add LessOrEqual、ReduceSumSquare ops

Describe

1、Pad 新增逻辑,如果 mode 为 'constant',并且 pad 的长度为 x 维度的2倍时,则会根据 pad 和 value 对 x 从前面的维度向后依次补齐;参考官网:https://www.paddlepaddle.org.cn/documentation/docs/zh/api/paddle/nn/functional/pad_cn.html#pad
2、关于_interpolate修改output name,是因为遇到情况:后面的op要用到slice之前的tensor,但目前逻辑为slice前后tensor的name一样,导致后面的OP�用到的为slice之后的tensor,导致出错

@wjj19950828 wjj19950828 mentioned this pull request Mar 23, 2022
6 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant