- 博客(1)
- 收藏
- 关注
原创 tf.tensordot运算矩阵矩阵示例
1.例子 import tensorflow as tf a = tf.constant([0,1,2,1,3,4,5,2,3,4,5,0],shape=[2,1,3,2]) b =tf.constant([1,3,2,3,1,2],shape=[2,3,1]) res = tf.tensordot(a,b,axes=1) with tf.Session() as sess: print(“a的shape:”,a.shape) print(“b的shape:”,b.shape) print(“a的值:”,s
2021-03-09 11:00:12 300
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人