linear¶
- dragon.vm.tensorflow.keras.activations.- linear(x)[source]¶
- Apply the linear activation to input. - The Linear function is defined as: \[\text{Linear}(x) = x \]- Examples: - x = tf.constant([1, 2, 3], 'float32') print(tf.keras.activations.linear(x)) - Parameters:
- x (dragon.Tensor) – The input tensor.
 
 - Returns:
- dragon.Tensor – The output tensor. 
 
