-
Notifications
You must be signed in to change notification settings - Fork 3
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
Softmax gives inf values when performed on 1D vector #228
Labels
Comments
For more info, below are stablehlo graphs for 2 cases that fail. x_shape = (1,32) and axis = 1
x_shape = (32, ) and axis = 0
Hopefully, once tenstorrent/tt-metal#17270 is merged, there won't be any need for this workaround, but we should keep in mind this flaw until then. |
tenstorrent/tt-metal#17270 was merged, this should be fixed after uplifting |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Related to #167:
MLIR workaround tenstorrent/tt-mlir@3a0fd0e enabled current softmax tests to pass (see #215). However during MNIST training with batch_size = 1, softmax outputs turned out to be inf.
I confirmed this by adding 1D vector to test_softmax where it expectedly fails (while other 4 non-1D tests pass).
The text was updated successfully, but these errors were encountered: