对下列程序段的执行结果,描述错误的是 。 import tensorflow as tf x = tf.constant([1., 4., 9., 16.]) pow(x, 0.5)
A.pow(x, 0.5)的作用是对张量x逐元素求平方根
B.其结果为[1., 2., 3., 4.]
C.张量数据类型为float32
D.输出张量的shape为(1,)
A.pow(x, 0.5)的作用是对张量x逐元素求平方根
B.其结果为[1., 2., 3., 4.]
C.张量数据类型为float32
D.输出张量的shape为(1,)
第1题
A、[4 4 4] True
B、[8 8 8] True
C、[8 8 8] 报错
D、[4 4 4] 报错
第2题
A、生成的张量中可能出现[-4,4]以外的点
B、每次运行的结果都不同
C、生成的随机张量形状为(2, 2)
D、生成的随机张量的数据类型为float32
第3题
A、[[ 0 9 16] [30 48 55]]
B、[[ 0 8 0] [30 44 0]]
C、[[ 0 9 14] [33 48 50]]
D、[[ 0 8 18] [30 44 60]]
第4题
A、8.0 16.0
B、16.0 4.0
C、8.0 4.0
D、16.0 8.0
第5题
A、<tf.tensor: id="9," shape="(2,)," dtype="float64," numpy="array([1.," 2.])>
B、<tf.tensor: id="9," shape="(1,2)," dtype="float64," numpy="array([1.," 2.])>
C、<tf.tensor: id="9," shape="(2,)," dtype="float32," numpy="array([1.," 2.])>
D、<tf.tensor: id="9," shape="(2,1)," dtype="float32," numpy="array([1.," 2.])>
第6题
A、float32
B、float64
C、int64
D、int32
第7题
A、(tf.float32, tf.float64)
B、(tf.float64, tf.float32)
C、(tf.float64, tf.float64)
D、(tf.float32, tf.float32)
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!