File tree Expand file tree Collapse file tree 4 files changed +6
-363
lines changed Expand file tree Collapse file tree 4 files changed +6
-363
lines changed Original file line number Diff line number Diff line change @@ -38,9 +38,9 @@ void forced_align_impl(
3838 for (int i = 0 ; i < T * S; i++) {
3939 backPtr_a[i] = -1 ;
4040 }
41- auto logProbs_a = torchaudio::stable:: accessor<scalar_t , 3 >(logProbs);
42- auto targets_a = torchaudio::stable:: accessor<target_t , 2 >(targets);
43- auto paths_a = torchaudio::stable:: accessor<target_t , 2 >(paths);
41+ auto logProbs_a = accessor<scalar_t , 3 >(logProbs);
42+ auto targets_a = accessor<target_t , 2 >(targets);
43+ auto paths_a = accessor<target_t , 2 >(paths);
4444 auto R = 0 ;
4545 for (auto i = 1 ; i < L; i++) {
4646 if (targets_a[batchIndex][i] == targets_a[batchIndex][i - 1 ]) {
Original file line number Diff line number Diff line change @@ -156,8 +156,8 @@ void forced_align_impl(
156156
157157 // CPU accessors
158158 std::cout << " forced_align_impl: 5" << std::endl;
159- auto targetsCpu_a = torchaudio::stable:: accessor<target_t , 2 >(targetsCpu);
160- auto backPtrCpu_a = torchaudio::stable:: accessor<int8_t , 2 >(backPtrCpu);
159+ auto targetsCpu_a = accessor<target_t , 2 >(targetsCpu);
160+ auto backPtrCpu_a = accessor<int8_t , 2 >(backPtrCpu);
161161 // count the number of repeats in label
162162 int R = 0 ;
163163 for (int i = 1 ; i < L; ++i) {
@@ -239,7 +239,7 @@ void forced_align_impl(
239239 std::cout << " forced_align_impl: 7" << std::endl;
240240 cpuDataTranferStream.synchronize ();
241241 auto alphasCpu = torchaudio::stable::cpu (alphas);
242- auto alphasCpu_a = torchaudio::stable:: accessor<scalar_t , 2 >(alphasCpu);
242+ auto alphasCpu_a = accessor<scalar_t , 2 >(alphasCpu);
243243 int curIdxOffset = ((T - 1 ) % 2 );
244244 int ltrIdx =
245245 alphasCpu_a[curIdxOffset][S - 1 ] > alphasCpu_a[curIdxOffset][S - 2 ]
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments