Skip to content

Commit ffb1fbc

Browse files
Update solution_5_0.py
fixed error: 'Object arrays cannot be loaded when allow_pickle=False'
1 parent 5791952 commit ffb1fbc

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)