-
Notifications
You must be signed in to change notification settings - Fork 486
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
Use benchmark_cls
for checking precision.
#6375
Conversation
Refer to the issue here for the context: #6286 The key point I think is to prevent leaving behind a dangling object which e.g., moved a model to xla device. |
Since we only need to detect the precision, we can fetch the information directly without invoking
I think we can call the following
WDYT? |
Right. Correct if I'm misunderstanding things, but isn't that exactly what I'm doing here? |
Hah, you are right. I didn't notice that you called Now it LGTM! |
benchmark_cls
for checking precision.`benchmark_cls
for checking precision.
This PR makes it so we don't have to call
load_benchmark
only for checking the precision to be used.cc @miladm @JackCaoG