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

Add more upsample kernel #5382

Merged
merged 102 commits into from
Jul 16, 2021
Merged

Add more upsample kernel #5382

merged 102 commits into from
Jul 16, 2021

Conversation

BBuf
Copy link
Contributor

@BBuf BBuf commented Jul 4, 2021

后续会删除upsample相关(这个pr暂时保留),用这个interpolate来处理upsample2d等上采样module。

添加更多的插值kernel,补全upsample。

新增了如下插值kernel:

  • linear1d
  • nearest1d
  • nearest3d
  • bicubic2d
  • nearest3d
  • trilineard3d

另外学习pytorch的直观写法,将以前bilinear2d,nearest2d 独立出来使kernel的实现更加直观。

api:

图片

图片

图片

doctest:

图片

测试100轮:

图片

BBuf and others added 30 commits June 29, 2021 21:41
Co-authored-by: oneflow-ci-bot <69100618+oneflow-ci-bot@users.noreply.github.com>
@BBuf BBuf requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 16, 2021 03:37
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 16, 2021 04:41
@oneflow-ci-bot oneflow-ci-bot merged commit 17b259f into master Jul 16, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the add_more_upsample_kernel branch July 16, 2021 05:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants