Skip to content

Commit caf20fc

Browse files
committed
Please consider the following formatting changes
1 parent a963c01 commit caf20fc

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

GPU/Workflow/src/GPUWorkflowSpec.cxx

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -779,17 +779,17 @@ void GPURecoWorkflowSpec::run(ProcessingContext& pc)
779779

780780
// Compute the actual number of bytes to write
781781
std::size_t writeSize = (pos != buffer + size)
782-
? static_cast<std::size_t>(pos - buffer)
783-
: size;
782+
? static_cast<std::size_t>(pos - buffer)
783+
: size;
784784

785785
std::ofstream out(path, std::ios::binary | std::ios::trunc);
786786
if (!out.is_open()) {
787-
throw std::runtime_error("Failed to open ONNX output file: " + path);
787+
throw std::runtime_error("Failed to open ONNX output file: " + path);
788788
}
789789

790790
out.write(buffer, static_cast<std::streamsize>(writeSize));
791791
if (!out) {
792-
throw std::runtime_error("Failed while writing ONNX data to: " + path);
792+
throw std::runtime_error("Failed while writing ONNX data to: " + path);
793793
}
794794
};
795795

@@ -1285,12 +1285,12 @@ Inputs GPURecoWorkflowSpec::inputs()
12851285
GPUSettingsProcessingNNclusterizer& nnClusterizerSettings = mConfig->configProcessing.nn;
12861286

12871287
std::map<std::string, std::string> metadata;
1288-
metadata["inputDType"] = nnClusterizerSettings.nnInferenceInputDType; // FP16 or FP32
1289-
metadata["outputDType"] = nnClusterizerSettings.nnInferenceOutputDType; // FP16 or FP32
1290-
metadata["nnCCDBWithMomentum"] = nnClusterizerSettings.nnCCDBWithMomentum; // 0, 1 -> Only for regression model
1291-
metadata["nnCCDBLayerType"] = nnClusterizerSettings.nnCCDBClassificationLayerType; // FC, CNN
1292-
metadata["nnCCDBInteractionRate"] = nnClusterizerSettings.nnCCDBInteractionRate; // in kHz
1293-
metadata["nnCCDBBeamType"] = nnClusterizerSettings.nnCCDBBeamType; // pp, pPb, PbPb
1288+
metadata["inputDType"] = nnClusterizerSettings.nnInferenceInputDType; // FP16 or FP32
1289+
metadata["outputDType"] = nnClusterizerSettings.nnInferenceOutputDType; // FP16 or FP32
1290+
metadata["nnCCDBWithMomentum"] = nnClusterizerSettings.nnCCDBWithMomentum; // 0, 1 -> Only for regression model
1291+
metadata["nnCCDBLayerType"] = nnClusterizerSettings.nnCCDBClassificationLayerType; // FC, CNN
1292+
metadata["nnCCDBInteractionRate"] = nnClusterizerSettings.nnCCDBInteractionRate; // in kHz
1293+
metadata["nnCCDBBeamType"] = nnClusterizerSettings.nnCCDBBeamType; // pp, pPb, PbPb
12941294

12951295
auto convert_map_to_metadata = [](const std::map<std::string, std::string>& inputMap, std::vector<o2::framework::CCDBMetadata>& outputMetadata) {
12961296
for (const auto& [key, value] : inputMap) {

0 commit comments

Comments
 (0)