Open robogast opened 2 years ago
Your comment is appreciated. We will have an internal discussion first and keep you posted. Seems like we need to build a more elegant exception capture mechanism.
Thanks for your response :)
Another one I encountered (just logging for completeness):
File "/gpfs/home5/robertsc/2D-VQ-AE-2/.venv/2D-VQ-AE-2-LDjtrq15-py39-cpu/lib/python3.9/site-packages/torch/_ops.py", line 143, in __call__
return self._op(*args, **kwargs or {})
RuntimeError: could not create a primitive descriptor iterator
meant in my case that ipex.optimize(..., dtype=x) and pytorch_lightning.trainer(..., precision=y) x != y
I was playing around with a debug model with some convolutions, but got the input shapes of some intermediate layer wrong (in my case a Conv after a Linear, i.e. no channel dim). In plain PyTorch, this gives me a reasonable error message:
However, in IPEX I get the following undescriptive error message:
Is it possible to shadow the error messages of the original nn modules?