Skip to content

Commit

Permalink
remove np.bool
Browse files Browse the repository at this point in the history
  • Loading branch information
manmay-nakhashi committed Jul 27, 2023
1 parent fa97846 commit ab5e25a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TTS/tts/utils/helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ def maximum_path_numpy(value, mask, max_neg_val=None):
device = value.device
dtype = value.dtype
value = value.cpu().detach().numpy()
mask = mask.cpu().detach().numpy().astype(np.bool)
mask = mask.cpu().detach().numpy().astype(bool)

b, t_x, t_y = value.shape
direction = np.zeros(value.shape, dtype=np.int64)
Expand Down

0 comments on commit ab5e25a

Please sign in to comment.