a = k.variable(val)
b = k.square(a)
c, d = k.stop_gradient([a, b])
e = k.stop_gradient(b)
// cntk currently not support function in this way, so can"t test as this
def test_function(self):
test_backend = [KTH, KTF]
After Change
// It doesn"t check the functionality (which is checked at the
// test_gradient test).
val = np.random.random((4, 2))
a = K.variable(val)b = K.square(a)
c, d = K.stop_gradient([a, b])
e = K.stop_gradient(b)
// cntk currently not support function in this way, so can"t test as this
def test_function(self):
test_backend = [KTH, KTF]