tensorflow获取网络weights和biases

可以获取指定层的训练参数

check_result = []
check_v_name = [v.name for v in tf.trainable_variables()]
values = sess.run(check_v_name)
for n, v in zip(check_v_name, values):
    check_result.append([n, v])

你可能感兴趣的:(python,tensorflow,tensorflow,python)