Update PyTorchTraining.py
#1
by
ale11
- opened
- PyTorchTraining.py +1 -1
PyTorchTraining.py
CHANGED
|
@@ -3,7 +3,7 @@ import torch.onnx
|
|
| 3 |
#Function to Convert to ONNX
|
| 4 |
def Convert_ONNX():
|
| 5 |
|
| 6 |
-
# set the model to inference
|
| 7 |
model.eval()
|
| 8 |
|
| 9 |
# Let's create a dummy input tensor
|
|
|
|
| 3 |
#Function to Convert to ONNX
|
| 4 |
def Convert_ONNX():
|
| 5 |
|
| 6 |
+
# set the model to inference 1mode 2
|
| 7 |
model.eval()
|
| 8 |
|
| 9 |
# Let's create a dummy input tensor
|