We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 30ed519 commit ced6124Copy full SHA for ced6124
src/libtorchaudio/forced_align/cpu/compute.cpp
@@ -119,6 +119,7 @@ void forced_align_impl(
119
}
120
auto idx1 = (T - 1) % 2;
121
auto ltrIdx = alphas_a[S - 1][idx1] > alphas_a[S - 2][idx1] ? S - 1 : S - 2;
122
+ delete[] alphas_a;
123
// path stores the token index for each time step after force alignment.
124
for (auto t = T - 1; t > -1; t--) {
125
auto lbl_idx = ltrIdx % 2 == 0 ? blank : targets_a[batchIndex][ltrIdx / 2];
0 commit comments