Skip to content

Commit

Permalink
Update solution_5_0.py
Browse files Browse the repository at this point in the history
fixed error: 'Object arrays cannot be loaded when allow_pickle=False'
  • Loading branch information
PatrickSpeicher authored Nov 26, 2019
1 parent 5791952 commit ffb1fbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 5_MalwareInjection/solution_5_0.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@

latent_dim = 256 # Latent dimensionality of the encoding space.

input_token_index = np.load('./input_tokens.npy').item()
target_token_index = np.load('./target_tokens.npy').item()
input_token_index = np.load('./input_tokens.npy', allow_pickle=True).item()
target_token_index = np.load('./target_tokens.npy', allow_pickle=True).item()

num_encoder_tokens = len(input_token_index)
num_decoder_tokens = len(target_token_index)
Expand Down

0 comments on commit ffb1fbc

Please sign in to comment.