We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
oneflow.matmul doesn't work for this situation
import oneflow as flow import numpy as np x1 = flow.tensor(np.array([float('inf'), 0, -1, float('nan'), 5], dtype=np.float32)) x1 = x1.cuda() x2 = flow.tensor(np.array([float('nan'), 0, -1, 1, 5], dtype=np.float32)) x2 = x2.cuda() y1 = flow.matmul(x1,x2) print(y1) x1 = flow.tensor(np.array([float('inf'), 0, -1, float('nan'), 5], dtype=np.float32)) x1=x1.cpu() x2 = flow.tensor(np.array([float('nan'), 0, -1, 1, 5], dtype=np.float32)) x2 = x2.cpu() y2 = flow.matmul(x1,x2) print(y2)
pytorch
import torch import numpy as np input_tensor = torch.tensor(np.array([float('inf'), 0, -1, float('nan'), 5], dtype=np.float32)) other_tensor = torch.tensor(np.array([float('nan'), 0, -1, 1, 5], dtype=np.float32)) output_tensors = torch.matmul(input_tensor,other_tensor) print(output_tensors)
The text was updated successfully, but these errors were encountered:
Sorry to bother, it's obvious that my issues are ignored, maybe some confirmation or attention needed. @levi131
Sorry, something went wrong.
No branches or pull requests
Summary
oneflow.matmul doesn't work for this situation
Code to reproduce bug
pytorch
System Information
The text was updated successfully, but these errors were encountered: