docstr: Verify that scripting the model does not change the behavior of method `forward`.
docstr_tok: ["Verify","that","scripting","the","model","does","not","change","the","behavior","of","method","`","forward","`","."]
code: def test_torchscript_consistency_forward(self):
      r"""Verify that scripting the model does not change the behavior of method `forward`."""
      inputs = self._get_inputs()
  
      original_model = self._get_model()
      scripted_model = torch_script(original_model).eval()
  
      for _ in range(2):
          ref_out = original_model(inputs)
          scripted_out = scripted_model(inputs)
          self.assertEqual(ref_out, scripted_out)
  
imports: import math
  import torch
  from parameterized import parameterized
  from torchaudio.prototype.models import hifigan_vocoder, hifigan_vocoder_v1, hifigan_vocoder_v2, hifigan_vocoder_v3
  from torchaudio.prototype.pipelines import HIFIGAN_VOCODER_V3_LJSPEECH
  from torchaudio_unittest.common_utils import TestBaseMixin, torch_script
  from .original.env import AttrDict
  from .original.meldataset import mel_spectrogram
  from .original.models import Generator
label_desc: Use image node_id 7 for calling the HiFiGANTestImpl obj's underlying member method code with example usage: obj.test_torchscript_consistency_forward() without return types