elif isinstance(prev_layer, tf.Tensor):
raise Exception("Please use InputLayer to convert Tensor/Placeholder to TL layer")
elif prev_layer is not None:
raise Exception("Unknown layer type %s" % type(prev_layer))
def print_params(self, details=True, session=None):
Print all info of parameters in the network
for i, p in enumerate(self.all_params):
After Change
elif prev_layer is not None: // tl.models
self.all_layers = list(prev_layer.all_layers)
self.all_params = list(prev_layer.all_params)
self.all_drop = dict(prev_layer.all_drop)
// raise Exception("Unknown layer type %s" % type(prev_layer))
def print_params(self, details=True, session=None):
Print all info of parameters in the network