Rank and Shape
Rank = n-dimension tensor Rank = 0: 0 Rank = 1: [0, 1, 2] Rank = 2: [[0, 1, 2], [1, 2, 3]] Shape = length of each rank Shape = []: 0 Shape = [3]: [0, 1, 2] Shape = [2, 3]: [[0, 1, 2], [1, 2, 3]] Shape = [3, 1, 2]: [[[5, 7]], [[3, 4]], [[8. 2]]]
tensorflow
2020. 8. 26. 08:57