-
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 tril op #6005
Dev tril op #6005
Conversation
namespace oneflow { | ||
namespace one { | ||
|
||
struct TrilInterpState : public AutoGradCaptureState { |
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.
TrilInterpState 改为 TrilCaptureState
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.
TrilInterpState 改为 TrilCaptureState
已修改
python/oneflow/nn/modules/tril.py
Outdated
tensor([[1., 0., 0.], | ||
[1., 1., 0.], | ||
[1., 1., 1.]], dtype=oneflow.float32) | ||
>>> x.tril(1) |
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.
这里只保留 flow.tril 的例子吧
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.
这里只保留 flow.tril 的例子吧
已修改
return y | ||
|
||
@autotest() | ||
def TestTril_with_diag(test_case): |
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.
这个TestTril用小写吧(保持和上面的对齐)
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.
这个TestTril用小写吧(保持和上面的对齐)
已修改
CI failed, removing label automerge |
Speed stats:
|
CI failed, removing label automerge |
Speed stats:
|
CI failed, removing label automerge |
1 similar comment
CI failed, removing label automerge |
Speed stats:
|
对齐pytorch.tril算子
求单个或者批量2-D张量延相对主对角线位移指定diagnal的下三角张量