Spaces:
Runtime error
Runtime error
updated generator file
Browse files- generator.py +5 -5
generator.py
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
|
2 |
import tensorflow as tf
|
3 |
|
4 |
def layer_norm(x, scope='layer_norm') :
|
5 |
-
|
6 |
-
|
7 |
-
|
8 |
-
return tf.keras.layers.LayerNormalization(x, center=True, scale=True)
|
9 |
|
10 |
def lrelu(x, alpha=0.2):
|
11 |
return tf.nn.leaky_relu(x, alpha)
|
|
|
1 |
+
import tensorflow.contrib as tf_contrib
|
2 |
import tensorflow as tf
|
3 |
|
4 |
def layer_norm(x, scope='layer_norm') :
|
5 |
+
return tf_contrib.layers.layer_norm(x,
|
6 |
+
center=True, scale=True,
|
7 |
+
scope=scope)
|
8 |
+
# return tf.keras.layers.LayerNormalization(x, center=True, scale=True)
|
9 |
|
10 |
def lrelu(x, alpha=0.2):
|
11 |
return tf.nn.leaky_relu(x, alpha)
|