numpy/tensorflow中的不同维度的数组/tensor的运算

numpy和tensorflow的array或tensor运算时,不同维度之间运算之后的结果维度会综合运算前后的维度。

示例:

n10 = np.random.randint(1,5, size=(2,2,3,1,2))

n11 = np.random.randint(1,5, size=(1,3,2))

(n10 - n11).shape
 


 

-- over --

猜你喜欢

转载自blog.csdn.net/qm5132/article/details/83346281