From 0ed10b53890d3c2c514c75cc577fc4366d11705d Mon Sep 17 00:00:00 2001 From: Mike Essenmacher Date: Tue, 26 Sep 2023 10:36:31 -0400 Subject: [PATCH] Clang format changes Signed-off-by: Mike Essenmacher --- src/Accelerators/NNPA/Conversion/ONNXToZHigh/NNPALimit.h | 8 ++++---- .../NNPA/Conversion/ONNXToZHigh/ONNXLegalityCheck.cpp | 5 +++-- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/src/Accelerators/NNPA/Conversion/ONNXToZHigh/NNPALimit.h b/src/Accelerators/NNPA/Conversion/ONNXToZHigh/NNPALimit.h index 7ae99ee546..8ee937459e 100644 --- a/src/Accelerators/NNPA/Conversion/ONNXToZHigh/NNPALimit.h +++ b/src/Accelerators/NNPA/Conversion/ONNXToZHigh/NNPALimit.h @@ -30,7 +30,7 @@ static constexpr int64_t MAXIMUM_NUM_HIDDEN_SIZE_LSTM = 8192; static constexpr int64_t MAXIMUM_NUM_HIDDEN_SIZE_GRU = 10880; // The NNPA levels. -static constexpr const char* NNPA_Z13 = "z13"; -static constexpr const char* NNPA_Z14 = "z14"; -static constexpr const char* NNPA_Z15 = "z15"; -static constexpr const char* NNPA_Z16 = "z16"; +static constexpr const char *NNPA_Z13 = "z13"; +static constexpr const char *NNPA_Z14 = "z14"; +static constexpr const char *NNPA_Z15 = "z15"; +static constexpr const char *NNPA_Z16 = "z16"; diff --git a/src/Accelerators/NNPA/Conversion/ONNXToZHigh/ONNXLegalityCheck.cpp b/src/Accelerators/NNPA/Conversion/ONNXToZHigh/ONNXLegalityCheck.cpp index 680067e5d3..7fb6253bd2 100644 --- a/src/Accelerators/NNPA/Conversion/ONNXToZHigh/ONNXLegalityCheck.cpp +++ b/src/Accelerators/NNPA/Conversion/ONNXToZHigh/ONNXLegalityCheck.cpp @@ -28,9 +28,10 @@ using namespace onnx_mlir; float convertNNPALevel(std::string inputNNPALevel) { float retNNPAFloat = 0; try { - retNNPAFloat = std::strtof(inputNNPALevel.substr(1, inputNNPALevel.size()).c_str(), NULL); + retNNPAFloat = std::strtof( + inputNNPALevel.substr(1, inputNNPALevel.size()).c_str(), NULL); } catch(...) { - retNNPAFloat = 0; + retNNPAFloat = 0; } return retNNPAFloat; }