Skip to content

Commit 94caa90

Browse files
rogiervdRogier van Dalen
authored andcommitted
Use correct signature for torch.tensor.type() (from Samsung, AI Center, Cambridge) (speechbrain#2910)
Co-authored-by: Rogier van Dalen <r.vandalen@samsung.com>
1 parent 62228b4 commit 94caa90

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

speechbrain/alignment/aligner.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ def _dp_viterbi(
739739
)
740740
v_matrix[:, :, t] = x + emiss_pred_useful[:, :, t]
741741

742-
backpointers[:, :, t] = argmax.type(torch.FloatTensor)
742+
backpointers[:, :, t] = argmax.type(dtype=torch.float32)
743743

744744
z_stars = []
745745
z_stars_loc = []

0 commit comments

Comments
 (0)