Skip to content

Commit 19a0b6f

Browse files
authored
Merge pull request #4 from PatrickSpeicher/patch-3
Update solution_5_0.py
2 parents 5791952 + ffb1fbc commit 19a0b6f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

5_MalwareInjection/solution_5_0.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414

1515
latent_dim = 256 # Latent dimensionality of the encoding space.
1616

17-
input_token_index = np.load('./input_tokens.npy').item()
18-
target_token_index = np.load('./target_tokens.npy').item()
17+
input_token_index = np.load('./input_tokens.npy', allow_pickle=True).item()
18+
target_token_index = np.load('./target_tokens.npy', allow_pickle=True).item()
1919

2020
num_encoder_tokens = len(input_token_index)
2121
num_decoder_tokens = len(target_token_index)

0 commit comments

Comments
 (0)