def add_layer(self, new_layer):
'''Adds the given layer to the network'''
self.layers.append(new_layer)
self.output = theano.clone(new_layer.output, replace={new_layer.input: self.output})
self.size += new_layer.size
评论列表
文章目录