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_benchmarkonly for checking the precision to be used.cc @miladm @JackCaoG