Skip to content

Commit

Permalink
Replace np.int -> int
Browse files Browse the repository at this point in the history
  • Loading branch information
thequilo committed Jul 13, 2023
1 parent a07bc59 commit 014166f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mms_msg/sampling/source_composition/composition.py
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,7 @@ def extend_composition_example_greedy(
['Eve', 'Bob', 'Alice']], dtype='<U5')
"""
if example_compositions is None:
example_compositions = np.arange(len(speaker_ids), dtype=np.int)
example_compositions = np.arange(len(speaker_ids), dtype=int)
example_compositions = rng.permutation(example_compositions)[:, None]
return example_compositions

Expand All @@ -487,7 +487,7 @@ def extend_composition_example_greedy(
set([speaker_ids[c_] for c_ in c]) for c in example_compositions
]

candidates = np.arange(len(speaker_ids), dtype=np.int)
candidates = np.arange(len(speaker_ids), dtype=int)
speaker_ids = np.array(speaker_ids)
for _ in range(tries):
candidates = rng.permutation(candidates)
Expand Down

0 comments on commit 014166f

Please sign in to comment.