Spaces:
Sleeping
Sleeping
Commit
•
8c73bdf
1
Parent(s):
d70af30
commit
Browse files
app.py
CHANGED
@@ -1,6 +1,9 @@
|
|
1 |
from tensorflow.keras.models import load_model
|
2 |
from tensorflow.keras.initializers import Orthogonal
|
3 |
from tensorflow.keras.utils import CustomObjectScope
|
|
|
|
|
|
|
4 |
|
5 |
# Register custom initializers or objects
|
6 |
with CustomObjectScope({'Orthogonal': Orthogonal}):
|
|
|
1 |
from tensorflow.keras.models import load_model
|
2 |
from tensorflow.keras.initializers import Orthogonal
|
3 |
from tensorflow.keras.utils import CustomObjectScope
|
4 |
+
from tensorflow.keras.layers import LSTM
|
5 |
+
|
6 |
+
lstm_layer = LSTM(64, return_sequences=True, time_major=False)
|
7 |
|
8 |
# Register custom initializers or objects
|
9 |
with CustomObjectScope({'Orthogonal': Orthogonal}):
|