Skip to content

Commit

Permalink
Replace LayerRNNCell with AbstractRNNCell
Browse files Browse the repository at this point in the history
Signed-off-by: Simon Zhao <[email protected]>
  • Loading branch information
SimonYansenZhao committed Jan 30, 2024
1 parent 73efd27 commit 1b8d287
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion recommenders/models/deeprec/models/sequential/sum_cells.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@

import numpy as np
import tensorflow as tf
from keras.layers.legacy_rnn.rnn_cell_impl import LayerRNNCell
try:
from keras.layers.legacy_rnn.rnn_cell_impl import LayerRNNCell
except:
from keras.layers.rnn import AbstractRNNCell as LayerRNNCell
from tensorflow.python.eager import context
from tensorflow.python.keras import activations
from tensorflow.python.keras import initializers
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@
"pytest>=3.6.4",
"pytest-cov>=2.12.1",
"pytest-mock>=3.6.1", # for access to mock fixtures in pytest
"packaging>=20.9", # for version comparison in test_dependency_security.py
"packaging>=20.9", # for version comparison in test_dependency_security.py
],
}
# For the brave of heart
Expand Down

0 comments on commit 1b8d287

Please sign in to comment.