【发布时间】:2017-06-06 06:23:16
【问题描述】:
我正在尝试学习张量流。在给定的示例中,我们如何定义等级和形状?我的意思是如何找到等级和形状??
3 # a rank 0 tensor; this is a scalar with shape []
[1. ,2., 3.] # a rank 1 tensor; this is a vector with shape [3]
[[1., 2., 3.], [4., 5., 6.]] # a rank 2 tensor; a matrix with shape [2, 3]
[[[1., 2., 3.]], [[7., 8., 9.]]] # a rank 3 tensor with shape [2, 1, 3]
【问题讨论】:
标签: python machine-learning tensorflow artificial-intelligence