MCPcopy
hub / github.com/astorfi/lip-reading-deeplearning / PReLU

Function PReLU

code/training_evaluation/nets/lipread_speech.py:71–81  ·  view source on GitHub ↗

Similar to TFlearn implementation :param input: input of the PReLU which is output of a layer. :return: The output.

(input,scope)

Source from the content-addressed store, hash-verified

69 return arg_sc
70
71def PReLU(input,scope):
72 """
73 Similar to TFlearn implementation
74 :param input: input of the PReLU which is output of a layer.
75 :return: The output.
76 """
77 alphas = tf.get_variable(scope, input.get_shape()[-1],
78 initializer=tf.constant_initializer(0.0),
79 dtype=tf.float32)
80
81 return tf.nn.relu(input) + alphas * (input - abs(input)) * 0.5
82
83end_points = {}
84

Callers 1

speech_cnn_lstmFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected