-
-
Save tkeyo/021cd1aebde41f52917b2acc64b2ea59 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import torch | |
torch.onnx.export( | |
final_model, | |
torch.randn(1, 3, 256, 256), | |
'models/hot_dog_model_resnet18_256_256.onnx', | |
do_constant_folding=True, | |
export_params=True, | |
input_names=['image_1_3_256_256'], | |
output_names=['hot_dog'], | |
opset_version=11 | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment