tensorflow中,tensor = tf.constant([1, 2, 3, 4, 5, 6, 7,8]),sess.run(tf.reshape(tensor,[2,-1]))运行后,tensor的内容变成?
(A)[[1,2,3,4],[5,6,7,8]]
(B)[[1,2,3], [4,5,6,7,8]]
(C)[[1,2,3], [4,5,6],[7,8]]
(D)[[1,2],[3,4],[5,6],[7,8]]
参考答案
继续答题:下一题
(A)[[1,2,3,4],[5,6,7,8]]
(B)[[1,2,3], [4,5,6,7,8]]
(C)[[1,2,3], [4,5,6],[7,8]]
(D)[[1,2],[3,4],[5,6],[7,8]]