From caf20fc089be9e1dc9a6fab02ab90814b2935627 Mon Sep 17 00:00:00 2001 From: ALICE Action Bot Date: Fri, 21 Nov 2025 15:35:02 +0000 Subject: [PATCH] Please consider the following formatting changes --- GPU/Workflow/src/GPUWorkflowSpec.cxx | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/GPU/Workflow/src/GPUWorkflowSpec.cxx b/GPU/Workflow/src/GPUWorkflowSpec.cxx index c5a75dcd762df..a5bdc53911e58 100644 --- a/GPU/Workflow/src/GPUWorkflowSpec.cxx +++ b/GPU/Workflow/src/GPUWorkflowSpec.cxx @@ -779,17 +779,17 @@ void GPURecoWorkflowSpec::run(ProcessingContext& pc) // Compute the actual number of bytes to write std::size_t writeSize = (pos != buffer + size) - ? static_cast(pos - buffer) - : size; + ? static_cast(pos - buffer) + : size; std::ofstream out(path, std::ios::binary | std::ios::trunc); if (!out.is_open()) { - throw std::runtime_error("Failed to open ONNX output file: " + path); + throw std::runtime_error("Failed to open ONNX output file: " + path); } out.write(buffer, static_cast(writeSize)); if (!out) { - throw std::runtime_error("Failed while writing ONNX data to: " + path); + throw std::runtime_error("Failed while writing ONNX data to: " + path); } }; @@ -1285,12 +1285,12 @@ Inputs GPURecoWorkflowSpec::inputs() GPUSettingsProcessingNNclusterizer& nnClusterizerSettings = mConfig->configProcessing.nn; std::map metadata; - metadata["inputDType"] = nnClusterizerSettings.nnInferenceInputDType; // FP16 or FP32 - metadata["outputDType"] = nnClusterizerSettings.nnInferenceOutputDType; // FP16 or FP32 - metadata["nnCCDBWithMomentum"] = nnClusterizerSettings.nnCCDBWithMomentum; // 0, 1 -> Only for regression model - metadata["nnCCDBLayerType"] = nnClusterizerSettings.nnCCDBClassificationLayerType; // FC, CNN - metadata["nnCCDBInteractionRate"] = nnClusterizerSettings.nnCCDBInteractionRate; // in kHz - metadata["nnCCDBBeamType"] = nnClusterizerSettings.nnCCDBBeamType; // pp, pPb, PbPb + metadata["inputDType"] = nnClusterizerSettings.nnInferenceInputDType; // FP16 or FP32 + metadata["outputDType"] = nnClusterizerSettings.nnInferenceOutputDType; // FP16 or FP32 + metadata["nnCCDBWithMomentum"] = nnClusterizerSettings.nnCCDBWithMomentum; // 0, 1 -> Only for regression model + metadata["nnCCDBLayerType"] = nnClusterizerSettings.nnCCDBClassificationLayerType; // FC, CNN + metadata["nnCCDBInteractionRate"] = nnClusterizerSettings.nnCCDBInteractionRate; // in kHz + metadata["nnCCDBBeamType"] = nnClusterizerSettings.nnCCDBBeamType; // pp, pPb, PbPb auto convert_map_to_metadata = [](const std::map& inputMap, std::vector& outputMetadata) { for (const auto& [key, value] : inputMap) {