docstr: Check that output of our implementation matches the original one.
docstr_tok: ["Check","that","output","of","our","implementation","matches","the","original","one","."]
code: def test_original_implementation_match(self):
      r"""Check that output of our implementation matches the original one."""
      model_config = self._get_model_config()
      model_config = AttrDict(model_config)
      model_config.resblock = (
          "1" if model_config.resblock_type == 1 else "2"
      )
      model_ref = Generator(model_config).to(
          device=self.device, dtype=self.dtype
      )
      model_ref.remove_weight_norm()
  
      inputs = self._get_inputs()
      model = self._get_model()
      model.load_state_dict(model_ref.state_dict())
  
      ref_output = model_ref(inputs)
      output = model(inputs)
      self.assertEqual(ref_output, output)
  
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 9 for calling the HiFiGANTestImpl obj's underlying member method code with example usage: obj.test_original_implementation_match() without return types