mirror of
https://github.com/dscripka/openWakeWord.git
synced 2026-08-27 18:17:20 -04:00
flake8 fix
This commit is contained in:
parent
d5d377a623
commit
fad5ee7db2
1 changed files with 2 additions and 1 deletions
|
|
@ -309,7 +309,8 @@ class Model(nn.Module):
|
|||
# Save ONNX model
|
||||
logging.info(f"####\nSaving ONNX mode as '{os.path.join(output_dir, model_name + '.onnx')}'")
|
||||
model_to_save = copy.deepcopy(model)
|
||||
torch.onnx.export(model_to_save.to("cpu"), torch.rand(self.input_shape)[None, ], os.path.join(output_dir, model_name + ".onnx"), opset_version=13)
|
||||
torch.onnx.export(model_to_save.to("cpu"), torch.rand(self.input_shape)[None, ],
|
||||
os.path.join(output_dir, model_name + ".onnx"), opset_version=13)
|
||||
|
||||
return None
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue