Skip to content

Commit

Permalink
Fix errors in Release mode
Browse files Browse the repository at this point in the history
Signed-off-by: Tung D. Le <[email protected]>
  • Loading branch information
tungld committed Jan 15, 2025
1 parent 1d66bff commit 9cf27e3
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
9 changes: 4 additions & 5 deletions src/Accelerators/NNPA/Compiler/NNPACompilerOptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -132,11 +132,10 @@ llvm::cl::list<std::string, std::vector<std::string>> nnpaQuantOpTypesOpt(
"nnpa-quant-op-types",
llvm::cl::desc(
"A comma-separated list of types of operations that are quantized. "
"E.g. 'MatMul,Conv'. Strings for types are the same as ONNX "
"operator "
"names in https://onnx.ai/onnx/operators/. By default or with "
"specifying this option, the compiler will determine the operation "
"types by itself."),
"E.g. 'MatMul,Conv'. Strings for types are the same as ONNX operator "
"names in https://onnx.ai/onnx/operators/. Currently, only MatMul is "
"supported. Without specifying this option, the compiler will "
"determine the operation types by itself."),
llvm::cl::location(nnpaQuantOpTypes), llvm::cl::ValueOptional,
llvm::cl::CommaSeparated, llvm::cl::cat(OnnxMlirCommonOptions));

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ std::vector<std::string> ONNXToZHighLoweringConfiguration::Quant::opTypes = {};

void configureONNXToZHighLoweringPass(bool optReportNNPAUnsupportedOps,
bool isDynQuant, bool quantIsActivationSym, bool quantIsWeightSym,
ArrayRef<std::string> quantOpTypes) {
std::vector<std::string> quantOpTypes) {
ONNXToZHighLoweringConfiguration::optReportNNPAUnsupportedOps =
optReportNNPAUnsupportedOps;
ONNXToZHighLoweringConfiguration::isDynQuant = isDynQuant;
Expand Down
2 changes: 1 addition & 1 deletion src/Accelerators/NNPA/Pass/NNPAPasses.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ std::unique_ptr<mlir::Pass> createDevicePlacementPass(
std::unique_ptr<mlir::Pass> createONNXToZHighPass();
void configureONNXToZHighLoweringPass(bool reportOnNNPAUnsupportedOps,
bool isDynQuant, bool quantIsActivationSym, bool quantIsWeightSym,
llvm::ArrayRef<std::string> quantOpTypes);
std::vector<std::string> quantOpTypes);

/// Add pass for rewriting ONNX ops for ZHigh.
std::unique_ptr<mlir::Pass> createRewriteONNXForZHighPass();
Expand Down

0 comments on commit 9cf27e3

Please sign in to comment.