ゼロのはいったTensor(行列)を作る

Sample(2.7)

import numpy as np

mat = np.zeros([3,2])
print mat

結果

[[ 0.  0.]
 [ 0.  0.]
 [ 0.  0.]]

Sample(3.0)

import numpy as np

mat = np.zeros([3,2])
print(mat)

結果

[[ 0.  0.]
 [ 0.  0.]
 [ 0.  0.]]