* Fix environment vars reading

* fix yaml returning none

* Assume rocm model is onnx despite file extension
This commit is contained in:
Nicolas Mowen
2024-10-29 15:34:07 -05:00
committed by GitHub
parent 73da3d9b20
commit 357ce0382e
3 changed files with 7 additions and 5 deletions
+2 -4
View File
@@ -98,9 +98,7 @@ class ROCmDetector(DetectionApi):
else:
logger.info(f"AMD/ROCm: loading model from {path}")
if path.endswith(".onnx"):
self.model = migraphx.parse_onnx(path)
elif (
if (
path.endswith(".tf")
or path.endswith(".tf2")
or path.endswith(".tflite")
@@ -108,7 +106,7 @@ class ROCmDetector(DetectionApi):
# untested
self.model = migraphx.parse_tf(path)
else:
raise Exception(f"AMD/ROCm: unknown model format {path}")
self.model = migraphx.parse_onnx(path)
logger.info("AMD/ROCm: compiling the model")