Skip to content

Commit

Permalink
Cast to int in build_sequence_matrix::pad (#1295)
Browse files Browse the repository at this point in the history
  • Loading branch information
Yard1 authored and ShreyaR committed Sep 17, 2021
1 parent 3ac82ea commit 5ee9958
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ludwig/utils/strings_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ def build_sequence_matrix(
max_length = length_limit

def pad(vector):
sequence = np.full((max_length,),
sequence = np.full((int(max_length),),
inverse_vocabulary[padding_symbol],
dtype=format_dtype)
limit = min(vector.shape[0], max_length)
Expand Down

0 comments on commit 5ee9958

Please sign in to comment.