Skip to content

Commit 30ed519

Browse files
committed
Add requested comment about scalar_t
1 parent 2062dc7 commit 30ed519

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libtorchaudio/forced_align/cpu/compute.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ void forced_align_impl(
2727
const auto L = targets.size(1);
2828
const auto S = 2 * L + 1;
2929

30-
auto alphas_a = new scalar_t[S][2];
30+
auto alphas_a = new scalar_t[S][2]; // scalar_t is just logProbs.dtype()
3131
for (int i = 0; i < S; i++) {
3232
alphas_a[i][0] = kNegInfinity;
3333
alphas_a[i][1] = kNegInfinity;

0 commit comments

Comments
 (0)