• 2022-05-28 问题

    下面程序的执行结果是______。import tensorflow as tfimport numpy as npx = tf.Variable(np.random.randn(3, 1))print(x.dtype) A: float32 B: float64 C: int64 D: int32

    下面程序的执行结果是______。import tensorflow as tfimport numpy as npx = tf.Variable(np.random.randn(3, 1))print(x.dtype) A: float32 B: float64 C: int64 D: int32

  • 2022-05-29 问题

    执行下列程序段后,得到的结果是 。import tensorflow as tfimport numpy as npa = tf.constant(np.arange(48).reshape(3,2,4,2))b =tf.random.shuffle(a)c = tf.constant(np.arange(8).reshape(2,4))d =[email protected](d.sh A: (3, 2, 2, 2) B: (3, 2, 4, 4) C: (3, 4, 4, 2) D: (3, 4, 4)

    执行下列程序段后,得到的结果是 。import tensorflow as tfimport numpy as npa = tf.constant(np.arange(48).reshape(3,2,4,2))b =tf.random.shuffle(a)c = tf.constant(np.arange(8).reshape(2,4))d =[email protected](d.sh A: (3, 2, 2, 2) B: (3, 2, 4, 4) C: (3, 4, 4, 2) D: (3, 4, 4)

  • 1