Skip to content

Commit

Permalink
Change the dims[0] and dims[1] positioning for Spectrogram
Browse files Browse the repository at this point in the history
  • Loading branch information
Swetha B S committed Mar 25, 2024
1 parent cb10bdc commit d791b9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rocAL/source/api/rocal_api_augmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2218,7 +2218,7 @@ rocalSpectrogram(
max_frame = std::max(0, max_frame);
int bins = std::max(0, (nfft / 2) + 1);
std::vector<size_t> dims = output_info.dims();
if (spectrogram_layout == RocalSpectrogramLayout::ROCAL_FT) {
if (spectrogram_layout == RocalSpectrogramLayout::ROCAL_TF) {
dims[1] = max_frame;
dims[2] = bins;
} else {
Expand Down

0 comments on commit d791b9a

Please sign in to comment.