Subtract

class dragon.vm.tensorflow.keras.layers.Subtract(**kwargs)[source]

The layer to subtract two inputs.

\[\text{out} = x - y \]

Examples:

x = tf.constant([1, 2, 3])
print(tf.keras.layers.Subtract()([x, x]))

__init__

Subtract.__init__(**kwargs)[source]

Create a Subtract layer.