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.max/min perform differently between cpu and cuda.
oneflow.max
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() y1 = flow.max(x1,dim=1) print(y1) x1 = flow.tensor(np.array([[float('inf'), 0, -1, float('nan'), 5]], dtype=np.float32)) x1 = x1.cpu() y2 = flow.max(x1,dim=1) print(y2)
oneflow.min
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() y1 = flow.min(x1,dim=1) print(y1) x1 = flow.tensor(np.array([[float('inf'), 0, -1, float('nan'), 5]], dtype=np.float32)) x1 = x1.cpu() y2 = flow.min(x1,dim=1) print(y2)
The text was updated successfully, but these errors were encountered:
oneflow.median has the same bug
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() y1 = flow.median(x1,dim=1) print(y1) x1 = flow.tensor(np.array([[float('inf'), 0, -1, float('nan'), 5]], dtype=np.float32)) x1 = x1.cpu() y2 = flow.median(x1,dim=1) print(y2)
Sorry, something went wrong.
No branches or pull requests
Summary
oneflow.max/min perform differently between cpu and cuda.
Code to reproduce bug
oneflow.max
oneflow.min
System Information
The text was updated successfully, but these errors were encountered: