Yuchan
commited on
Update Model.py
Browse files
Model.py
CHANGED
|
@@ -144,7 +144,7 @@ class rGLU(layers.Layer):
|
|
| 144 |
self.W = layers.Dense(d_model)
|
| 145 |
def call(self, x):
|
| 146 |
x = tf.nn.silu(self.W1(Wr(x)) + x) * (self.W2(self.Wr1(x)) + x)
|
| 147 |
-
return
|
| 148 |
|
| 149 |
class Adapter(layers.Layer):
|
| 150 |
def __init__(self, d_model, hyper_n):
|
|
|
|
| 144 |
self.W = layers.Dense(d_model)
|
| 145 |
def call(self, x):
|
| 146 |
x = tf.nn.silu(self.W1(Wr(x)) + x) * (self.W2(self.Wr1(x)) + x)
|
| 147 |
+
return self.W(x)
|
| 148 |
|
| 149 |
class Adapter(layers.Layer):
|
| 150 |
def __init__(self, d_model, hyper_n):
|