tensorflow Keras - not_equal, cast Test
기본형태tf.keras.backend.not_equaltf.keras.backend.not_equal(x, y)Returns:A bool tensor.- Element-wise inequality between two tensors.tf.keras.backend.casttf.keras.backend.cast(x, dtype)Returns:Keras tensor with dtype `dtype`.- Casts a tensor to a different dtype and returns it.with tf.Session() as sess: test_input1 = Input(shape=(1, )) test_equal = K.not_equal([1, 2, -1, -1, 4, 5], -1) tester = K..
2019. 3. 13.