Skip to content

Commit

Permalink
Clang format changes
Browse files Browse the repository at this point in the history
Signed-off-by: Mike Essenmacher <[email protected]>
  • Loading branch information
mikeessen committed Sep 26, 2023
1 parent 774823f commit 0ed10b5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
8 changes: 4 additions & 4 deletions src/Accelerators/NNPA/Conversion/ONNXToZHigh/NNPALimit.h
Original file line number Diff line number Diff line change
Expand Up @@ -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";
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 0ed10b5

Please sign in to comment.