def print_trainable_variables(self):
size = tf.Dimension(0)
print('*' * 80)
for v in tf.trainable_variables():
print('{}[{}]'.format(v.name, v.shape))
size += np.prod(v.shape)
print('TOTAL SIZE: {}\n{}'.format(size, '*' * 80))
评论列表
文章目录