Fix IMX onnx model path (#18813)
This commit is contained in:
parent
5306a8cc1f
commit
e17c1cdfe0
1 changed files with 1 additions and 1 deletions
|
|
@ -1286,7 +1286,7 @@ class Exporter:
|
||||||
|
|
||||||
f = Path(str(self.file).replace(self.file.suffix, "_imx_model"))
|
f = Path(str(self.file).replace(self.file.suffix, "_imx_model"))
|
||||||
f.mkdir(exist_ok=True)
|
f.mkdir(exist_ok=True)
|
||||||
onnx_model = f / Path(str(self.file).replace(self.file.suffix, "_imx.onnx")) # js dir
|
onnx_model = f / Path(str(self.file.name).replace(self.file.suffix, "_imx.onnx")) # js dir
|
||||||
mct.exporter.pytorch_export_model(
|
mct.exporter.pytorch_export_model(
|
||||||
model=quant_model, save_model_path=onnx_model, repr_dataset=representative_dataset_gen
|
model=quant_model, save_model_path=onnx_model, repr_dataset=representative_dataset_gen
|
||||||
)
|
)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue