Skip to content

太初平台causal_softmax算子 #171

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

Open
wants to merge 1 commit into
base: teco
Choose a base branch
from
Open

Conversation

xgqdut2016
Copy link
Collaborator

@xgqdut2016 xgqdut2016 commented May 23, 2025

1747987043862 不知道为什么测试结束以后总是出现core dumped,此外发现如果把causal_softmax.py里面的数值精度对比改为assert torch.allclose(x.to("cpu"), ans.to("cpu"), atol=0, rtol=1e-2),提前把数据转移到cpu上,这种做法可以通过测试,避开上面的问题,原因不详

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.

1 participant