Skip to content

Commit

Permalink
pin numpy < 2, handle deprecation of bool (#832)
Browse files Browse the repository at this point in the history
  • Loading branch information
charlesfrye authored Aug 5, 2024
1 parent 958d8e8 commit 42fbc1e
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
rnn_image = modal.Image.debian_slim().pip_install(
"keras",
"pandas",
"numpy",
"numpy<2",
"tensorflow",
)

Expand Down Expand Up @@ -176,8 +176,8 @@ def prep_dataset(
.replace("\n", " ")
)

X = np.zeros((num_sequences, max_sequence_len, num_chars), dtype=np.bool)
Y = np.zeros((num_sequences, num_chars), dtype=np.bool)
X = np.zeros((num_sequences, max_sequence_len, num_chars), dtype=bool)
Y = np.zeros((num_sequences, num_chars), dtype=bool)

for i, sequence in enumerate(sequences):
for j, char in enumerate(sequence):
Expand Down

0 comments on commit 42fbc1e

Please sign in to comment.