-
Notifications
You must be signed in to change notification settings - Fork 825
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
Dev cast op support stride #8292
Conversation
Flowingsun007
commented
May 24, 2022
•
edited
Loading
edited
- cast op支持stride
- test case
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. |
oneflow/core/framework/op_interpreter/eager_mirrored_op_interpreter.cpp
Outdated
Show resolved
Hide resolved
Speed stats:
|
if (!JUST(user_op_expr.SupportNonContiguous())) { | ||
std::shared_ptr<Stride> stride(new Stride(*tensor_impl->shape())); | ||
tensor_impl->mut_tensor_meta()->set_stride(stride); | ||
} |
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.
这个等后续把op stride推导加上之后就可以删了吧,加一个TODO
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.
或者是不是应该有一个默认的stride推导过程