Guest User

Untitled

a guest
May 12th, 2020
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. /workspace/brevitas_cnv_lfc/training_scripts/models/TFC.py:85: TracerWarning: torch.tensor results are registered as constants in the trace. You can safely ignore this warning if you use this function to create tensors out of constant variables that would be the same every time you call this function. In any other case, this might cause the trace to be incorrect.
  2. x = 2.0 * x - torch.tensor([1.0]).to(self.device)
  3. Traceback (most recent call last):
  4. File "exp.py", line 12, in <module>
  5. model = model.transform(FoldConstants())
  6. File "/workspace/finn/src/finn/core/modelwrapper.py", line 102, in transform
  7. transformed_model
  8. File "/workspace/finn/src/finn/transformation/fold_constants.py", line 54, in apply
  9. oxe.execute_node(n, execution_context, graph)
  10. File "/workspace/finn/src/finn/core/onnx_exec.py", line 87, in execute_node
  11. sess = rt.InferenceSession(node_model.SerializeToString())
  12. File "/opt/conda/lib/python3.6/site-packages/onnxruntime/capi/session.py", line 25, in __init__
  13. self._load_model(providers)
  14. File "/opt/conda/lib/python3.6/site-packages/onnxruntime/capi/session.py", line 43, in _load_model
  15. self._sess.load_model(providers)
  16. onnxruntime.capi.onnxruntime_pybind11_state.InvalidArgument: [ONNXRuntimeError] : 2 : INVALID_ARGUMENT : Failed to load model with error: Unknown model file format version.
Advertisement
Add Comment
Please, Sign In to add comment