-
Notifications
You must be signed in to change notification settings - Fork 669
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 interpolate_like for cpu #10544
base: master
Are you sure you want to change the base?
add interpolate_like for cpu #10544
Conversation
Code got formatted by CI. Please request CI again if you still want to have this PR merged. If the PR is from a forked repo, please download the patch files from the GitHub Actions web page and apply them locally. |
Code got formatted by CI. Please request CI again if you still want to have this PR merged. If the PR is from a forked repo, please download the patch files from the GitHub Actions web page and apply them locally. |
def interpolate_like( | ||
input, like, mode="nearest", align_corners=None, | ||
): | ||
"""The interface is consistent with PyTorch. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
参考interpolate,需要在docs/source/nn.functional.rst
里加一下interpolate_like
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
已补充
View latest API docs preview at: https://oneflow-staging.oss-cn-beijing.aliyuncs.com/docs/Oneflow-Inc/oneflow/pr/10544/ |
Speed stats:
|
CI failed when running job: cuda-misc. PR label automerge has been removed |
View latest API docs preview at: https://oneflow-staging.oss-cn-beijing.aliyuncs.com/docs/Oneflow-Inc/oneflow/pr/10544/ |
Speed stats:
|
Speed stats:
|
在npu上进行SD的推理时发现用到了
interpolate_like
算子,但在开源版本中还没提供该算子的cpu实现。因此该pr将闭源版本的
interpolate_like
算子的正向计算过程补充到开源版本。interpolate_like
算子了