docstr: Test that a default forward pass succeeds and does something
docstr_tok: ["Test","that","a","default","forward","pass","succeeds","and","does","something"]
code: def test_model_forward(self, config):
      """
      Test that a default forward pass succeeds and does something
      """
      image_shape = (3, 224, 224)
      num_images = (10,)
      input_tensor = torch.randn(num_images + image_shape)
  
      model = build_model(config)
      output = model.forward(input_tensor)
      # Just check that this tensor actually went through a forward
      # pass of sorts, and was not somehow bounced back
      logging.info(f"Model {config}: output shape {output.shape}")
  
      assert output.shape[0] == num_images[0]
  
      # Default presets output 7x7 feature maps for 224x224 inputs
      assert output.shape[-1] == 7
      assert output.shape[-2] == 7
  
imports: import copy
  import logging
  import unittest
  import torch
  import torch.nn
  from classy_vision.generic.util import get_torch_version
  from classy_vision.models import build_model, RegNet
  from parameterized import parameterized
label_desc: Use image node_id 1 for calling the TestRegNetModelFW obj's underlying member method code with example usage: obj.test_model_forward(config) without return types