scripts/export.py fails with `--device=cpu`
Regardless of the model being exported the script fails with
```python3
  File "scripts/export.py", line 160, in nemo_export
    raise e
  File "scripts/export.py", line 139, in nemo_export
    output_example = forward_method(model)(*input_list, **input_dict)
  File "/data/nemo_main/nemo/collections/tts/models/hifigan.py", line 425, in forward_for_export
    return self.generator(x=spec)
  File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1111, in _call_impl
    return forward_call(*input, **kwargs)
  File "/data/nemo_main/nemo/collections/tts/modules/hifigan_modules.py", line 245, in forward
    x = self.conv_pre(x)
  File "/opt/conda/lib/python3.8/site-packages/torch/nn/modules/module.py", line 1118, in _call_impl
    result = hook(self, input)
  File "/opt/conda/lib/python3.8/site-packages/torch/nn/utils/weight_norm.py", line 64, in __call__
    setattr(module, self.name, self.compute_weight(module))
  File "/opt/conda/lib/python3.8/site-packages/torch/nn/utils/weight_norm.py", line 24, in compute_weight
    return _weight_norm(v, g, self.dim)
RuntimeError: Inference tensors do not track version counter.
```
Tested with `nemo:1.9.0rc0` based on `pytorch:22.04-py3`. Related to #4100