Skip to content

Commit

Permalink
add stablehlo-legalize-to-qdq to the pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
sdasgup3 committed Jun 18, 2024
1 parent ec0a81d commit 5eea628
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion stablehlo/reference/Api.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ FailureOr<func::FuncOp> getMainFunction(ModuleOp module, StringRef mainName) {
class DefaultInterpreterFallback : public InterpreterFallback {
public:
DefaultInterpreterFallback(const InterpreterConfiguration &config)
: config(config){};
: config(config) {};

virtual llvm::Error operator()(Operation &op, Scope &scope,
Process *process) final {
Expand Down
2 changes: 2 additions & 0 deletions stablehlo/transforms/PassPipelines.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ void createStablehloRemoveDynamismPipeline(OpPassManager &pm,
}

void createStablehloLowerQuantPipeline(OpPassManager &pm) {
pm.addNestedPass<mlir::func::FuncOp>(
stablehlo::createStablehloLegalizeQuantizedOpToQDQPass());
pm.addNestedPass<mlir::func::FuncOp>(
stablehlo::createStablehloLegalizeQuantToIntPass());
pm.addNestedPass<mlir::func::FuncOp>(
Expand Down

0 comments on commit 5eea628

Please sign in to comment.