def summary(self, input_size=None, hashsummary=False):
if input_size is None:<EOL><INDENT>print(self)<EOL>print("<STR_LIT:->" * <NUM_LIT>)<EOL>number = sum(p.numel() for p in self.model.parameters())<EOL>print("<STR_LIT>".format(number))<EOL>print("<STR_LIT:->" * <NUM_LIT>)<EOL><DEDENT>else:<EOL><INDENT>summary(self, input_size)<EOL><DEDENT>if hashsummary:<EOL><INDENT>for idx, hashvalue in enumerate(self.hashsummary()):<EOL><INDENT>print(f"<STR_LIT>")<EOL><DEDENT><DEDENT>
Print a model summary