1
0
Fork 0

return session options properly

This commit is contained in:
Sean Sube 2023-02-18 15:45:28 -06:00
parent 5b4c370a1b
commit 881b290116
Signed by: ssube
GPG Key ID: 3EED7B957D362AF1
1 changed files with 2 additions and 0 deletions

View File

@ -117,6 +117,8 @@ class DeviceParams:
if "onnx-deterministic-compute" in self.optimizations:
sess.use_deterministic_compute = True
return sess
def torch_str(self) -> str:
if self.device.startswith("cuda"):
return self.device