def print_params(self, details=True, session=None):
for i, p in enumerate(self.all_params):<EOL><INDENT>if details:<EOL><INDENT>try:<EOL><INDENT>val = p.eval(session=session)<EOL>logging.info(<EOL>"<STR_LIT>".<EOL>format(i, p.name, str(val.shape), p.dtype.name, val.mean(), np.median(val), val.std())<EOL>)<EOL><DEDENT>except Exception as e:<EOL><INDENT>logging.info(str(e))<EOL>raise Exception(<EOL>"<STR_LIT>"<EOL>"<STR_LIT>"<EOL>)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>logging.info("<STR_LIT>".format(i, p.name, str(p.get_shape()), p.dtype.name))<EOL><DEDENT><DEDENT>logging.info("<STR_LIT>" % self.count_params())<EOL>
Print all info of parameters in the network