class_docstr: UnivNet Generator
  
  Originally from https://github.com/mindslab-ai/univnet/blob/master/model/generator.py.
class_docstr_tok: ["UnivNet","Generator","Originally","from","https",":","\/\/github.com\/mindslab-ai\/univnet\/blob\/master\/model\/generator.py","."]
code: def eval(self, inference=False):
      super(UnivNetGenerator, self).eval()
      # don't remove weight norm while validation in training loop
      if inference:
          self.remove_weight_norm()
  
imports: from dataclasses import dataclass
  from enum import Enum
  from typing import Callable, Optional
  import torch
  import torch.nn
  import torch.nn.functional
  import torch.nn.utils.parametrize
label_desc: Use image node_id 3 for calling the UnivNetGenerator obj's underlying member method code with example usage: obj.eval(inference) without return types