code: def __init__(self, nin, nout, act, model):
      self.act = act
      self.W = model.add_parameters((nout, nin))
      self.b = model.add_parameters(nout)
      self.nin = nin
      self.nout = nout
  
imports: from __future__ import print_function
  import dynet
  import numpy
  import os
label_desc: Use image node_id 1 to create a new Transfer object from inherited base classes: Saveable with example: obj = Transfer(nin, nout, act, model)