下面程序的执行结果是______。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
A: float32
B: float64
C: int64
D: int32
举一反三
- Tensorflow和Numpy中默认的浮点数类型分别为______。 A: float32 float64 B: float64 float32 C: float32 float32 D: float64 float64
- 请补全代码,修改数组a的类型为整数。 import numpy as np a = np.arange(12, dtype=float).reshape((3,4)) a = a. (int)
- 下面代码 >>x = 12.34 >>print(type(x)) 输出结果是: A: st B: float C: int D: list
- int x=3; float y=5.6; (int)(x+y)的结果是()
- 下面程序段的执行结果为_______。 import numpy as np t = np.arange(120).reshape(3,4,5,2) t0=np.sum(t,axis=1) print(t0.shape)