def __repr__(self): """Prints summary info about this layer. Derived classes may override this. """ return " ".join( (self.op_name, ": ", utilities.ell_shape_to_string(self.layer.ell_inputShape), " -> ", utilities.ell_shape_to_string(self.layer.ell_outputShape), "| input padding", str(self.layer.ell_inputPaddingParameters.paddingSize), " output padding", str(self.layer.ell_outputPaddingParameters.paddingSize)))
def __repr__(self): """Prints summary info about this layer. Derived classes may override this. """ layer_prefix = self.op_name if self.additional_layer_text: layer_prefix = '{} ({})'.format(layer_prefix, self.additional_layer_text) return '{} : {} -> {} | input padding {} output padding {}'.format( layer_prefix, utilities.ell_shape_to_string(self.layer.ell_inputShape), utilities.ell_shape_to_string(self.layer.ell_outputShape), str(self.layer.ell_inputPaddingParameters.paddingSize), str(self.layer.ell_outputPaddingParameters.paddingSize))
def __repr__(self): """Prints summary info about this layer.""" label = self.op_name nodes = utilities.get_model_layers(self.layer.block_root) if utilities.is_softmax_activation(nodes): label += "(softmax)" else: activation_type = utilities.get_activation_type(nodes) if activation_type is not None: label += "(" + utilities.ell_activation_type_to_string( activation_type) + ")" return " ".join( (label, ": ", utilities.ell_shape_to_string(self.layer.ell_inputShape), " -> ", utilities.ell_shape_to_string(self.layer.ell_outputShape), "| input padding", str(self.layer.ell_inputPaddingParameters.paddingSize), " output padding", str(self.layer.ell_outputPaddingParameters.paddingSize)))