查看tensorflow2中网络的参数

 print网络模型中的某一层输出为tensor形式,怎么查看这个tensor的详细数据?

想看看网络的详细参数。

def call(self, x):
    x = self.c1(x)
    print('c1:',x)

输出:

Tensor("le_net5/conv2d/Sigmoid:0", shape=(32, 24, 24, 6), dtype=float32)

想查看shape中的参数,使用什么函数查看?

不知道你这个问题是否已经解决, 如果还没有解决的话:

如果你已经解决了该问题, 非常希望你能够分享一下解决方案, 以帮助更多的人 ^-^