Cost,variable可变成本
第1题:
第2题:
以下代码的运行结果是什么? import tensorflow as tf with tf.variable_scope("a"): with tf.variable_scope("b"): c = tf.get_variable("c",[0]) print c.name
A.c
B.a/b/c
C.a/b/c:0
D.c:0
第3题:
4、函数内定义结构体指针变量的形式是?
A.struct type_variable_name variable_name;
B.Struct type_variable_name variable_name;
C.struct variable_name type_variable_name;
D.struct variable_name;
第4题:
9、下列代码的运行结果为() def test_scope(): variable=100 print(variable,end=',') def func(): print(variable,end=',') func() varialbe=300 test_scope() print(varialbe)
A.100,300,300
B.100,100,100
C.100,100,300
D.抛出异常
第5题:
执行下列代码后,得到的结果是______。 import tensorflow as tf a = tf.constant(3) x = tf.Variable(a) print(isinstance(a, tf.Tensor), isinstance(a, tf.Variable)) print(isinstance(x, tf.Tensor), isinstance(x, tf.Variable))
A.True False False True
B.False True True False
C.True True False False
D.False False True True