Skip to content

Commit

Permalink
Resolving review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
SundarRajan28 committed Jun 17, 2024
1 parent 8887b6d commit 42a9144
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions rocAL/source/api/rocal_api_augmentation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2271,8 +2271,7 @@ rocalToDecibels(
RocalTensorDataType op_tensor_data_type = static_cast<RocalTensorDataType>(output_datatype);
TensorInfo output_info = input->info();
if (op_tensor_data_type != RocalTensorDataType::FP32) {
WRN("Only FP32 dtype is supported for To decibels augmentation.")
op_tensor_data_type = RocalTensorDataType::FP32;
THROW("Only FP32 dtype is supported for To decibels augmentation.")
}
output_info.set_data_type(op_tensor_data_type);
if (input->info().layout() == RocalTensorlayout::NFT || input->info().layout() == RocalTensorlayout::NTF) // Layout is changed when input is from spectrogram/mel filter bank
Expand Down
1 change: 0 additions & 1 deletion rocAL/source/api/rocal_api_data_loaders.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2224,7 +2224,6 @@ rocalAudioFileSourceSingleShard(
TensorInfo output_info = info;
std::vector<size_t> output_dims = {context->user_batch_size(), info.dims()[1], 1};
output_info.set_dims(output_dims);

auto downmixed_output = context->master_graph->create_tensor(output_info, false);
std::shared_ptr<DownmixNode> downmix_node = context->master_graph->add_node<DownmixNode>({output}, {downmixed_output});

Expand Down

0 comments on commit 42a9144

Please sign in to comment.