Browse Source
update
Signed-off-by: junjie.jiang <junjie.jiang@zilliz.com>
main
1 changed files with
1 additions and
1 deletions
-
clip_vision.py
|
@ -68,7 +68,7 @@ class ClipVision(NNOperator): |
|
|
return False |
|
|
return False |
|
|
x = torch.randn((1, 3, 224, 224)) |
|
|
x = torch.randn((1, 3, 224, 224)) |
|
|
|
|
|
|
|
|
torch.onnx.export(self.model, x, output_file, input_names=['INPUT0'], |
|
|
|
|
|
|
|
|
torch.onnx.export(self.model.model, x, output_file, input_names=['INPUT0'], |
|
|
output_names=['OUTPUT0'], dynamic_axes={'INPUT0': [0]}) |
|
|
output_names=['OUTPUT0'], dynamic_axes={'INPUT0': [0]}) |
|
|
return True |
|
|
return True |
|
|
|
|
|
|
|
|