This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class Rezero(layers.Layer): | |
def __init__(self): | |
super().__init__() | |
self.alpha1 = tf.Variable(0.0, trainable=True) | |
def call(self, inputs, training): | |
return self.alpha1*inputs | |
class CustomRezero(tf.keras.layers.Layer): |
NewerOlder