Попытка добавить onnx в работе с nvidia
This commit is contained in:
8
onnx_export.py
Normal file
8
onnx_export.py
Normal file
@@ -0,0 +1,8 @@
|
||||
import torch
|
||||
from src.export_to_onnx import export_to_onnx
|
||||
from src.config.presets import SMALL
|
||||
|
||||
|
||||
if __name__ == "__main__":
|
||||
device = torch.device("cuda")
|
||||
export_to_onnx(SMALL, "src/pretrained/amt_s.onnx", device)
|
||||
Reference in New Issue
Block a user