code: def __init__(self, opt_size, network, dueling=False, **kwargs):
      super().__init__(None)
      self.network = network(**kwargs, pc=self.pc)
      self.opt_size = opt_size
      self.dueling = dueling
  
      hiddens = kwargs["hiddens"]
      self.W = self.pc.add_parameters((opt_size, hiddens[-1]))
      self.b = self.pc.add_parameters(opt_size)
      if dueling:
          self.W_extra = self.pc.add_parameters((1, hiddens[-1]))
          self.b_extra = self.pc.add_parameters(1)
  
file_path: dynet/examples/reinforcement-learning/network.py
imports: import dynet
label_desc: Use image node_id 1 to create a new Header object from inherited base classes: Network with example: obj = Header(opt_size, network, dueling)