⛰️[EPIC]: VFGN Integration
Tracker for the issues related to integrating VFGN
### Pytest
- [ ] https://github.com/NVIDIA/modulus/issues/451
Excluding entry point one, there are 3 more errors.
- Checkpointing is not compatible with .grad() or when an
inputsparameter is passed to .backward().
This one is because our code includes torch.util.checkpoint function, which does not support torch.grad. It only supports backward()
- RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn
This is mainy because VFGN have multiple inputs including scalar integers.
- TypeError: Object of type Tensor is not JSON serializable
I have no idea what causing this error.
TypeError: Object of type Tensor is not JSON serializable
seems in checkpooints.py save function does not take type TorchTensor or a predefined class as input, class LearnedSimulator() initialization does create these tensors in arg "boundaries" and "normalization_stats"
First check fail safes of save/load functions
try:
model_1.save("folder_does_not_exist/checkpoint.mdlus")
except IOError:
pass
https://github.com/NVIDIA/modulus/pull/334