def __init__(self, _input, name, deterministic_initialization=False):
"""
Creates an object that represent a network. Important attributes of a Network object are
`var_list`: list of tf.Variables that constitute the parameters of the model
`inp`: list, first element is `_input` and last should be output of the model. Other entries can be
hidden layers activations.
:param _input: tf.Tensor, input of this model.
"""
super(Network, self).__init__()
self.name = name
self.deterministic_initialization = deterministic_initialization
self._var_list_initial_values = []
self._var_init_placeholder = None
self._assign_int = []
self._var_initializer_op = None
self.Ws = []
self.bs = []
self.inp = [_input]
self.out = None # for convenience
self.var_list = []
self.active_gen = []
self.active_gen_kwargs = []
self.w = None
评论列表
文章目录