Ejemplo n.º 1
0
 def __init__(self, input_dim, active_dims=None):
     Parameterized.__init__(self)
     self.input_dim = input_dim
     if active_dims is None:
         self.active_dims = slice(input_dim)
     else:
         self.active_dims = active_dims
Ejemplo n.º 2
0
 def __init__(self, input_dim, active_dims=None):
     Parameterized.__init__(self)
     self.input_dim = input_dim
     if active_dims is None:
         self.active_dims = slice(input_dim)
     else:
         self.active_dims = active_dims
Ejemplo n.º 3
0
 def __init__(self, name='model'):
     """
     name is a string describing this model.
     """
     Parameterized.__init__(self)
     self._name = name
     self._needs_recompile = True
     self._session = tf.Session()
     self._free_vars = tf.placeholder(tf.float64)
Ejemplo n.º 4
0
 def __init__(self, input_dim, active_dims=None):
     """
     input dim is an integer
     active dims is a (slice | iterable of integers | None)
     """
     Parameterized.__init__(self)
     self.input_dim = input_dim
     if active_dims is None:
         self.active_dims = slice(input_dim)
     else:
         self.active_dims = tf.constant(np.array(active_dims, dtype=np.int32), tf.int32)
Ejemplo n.º 5
0
 def __init__(self):
     Parameterized.__init__(self)
     self.num_gauss_hermite_points = 20