Skip to content
This repository has been archived by the owner on Jan 20, 2024. It is now read-only.

Commit

Permalink
[mlir][sparse] allow unknown ops in one-shot bufferization in mini-pi…
Browse files Browse the repository at this point in the history
…peline (#77688)

Rationale:
Since this mini-pipeline may be used in alternative pipelines (viz.
different from the default "sparsifier" pipeline) where unknown ops are
handled by alternative bufferization methods that are downstream of this
mini-pipeline, we allow unknown ops by default (failure to bufferize is
eventually apparent by failing to convert to LLVM IR).

This is part of enabling e2e testing for TORCH-MLIR tests using a
sparsifier backend
  • Loading branch information
aartbik committed Jan 10, 2024
1 parent a08506e commit aec73ea
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,12 @@ mlir::getBufferizationOptionsForSparsification(bool analysisOnly) {
options.testAnalysisOnly = true;
options.printConflicts = true;
}
// Since this mini-pipeline may be used in alternative pipelines (viz.
// different from the default "sparsifier" pipeline) where unknown ops
// are handled by alternative bufferization methods that are downstream
// of this mini-pipeline, we allow unknown ops by default (failure to
// bufferize is eventually apparent by failing to convert to LLVM IR).
options.allowUnknownOps = true;
return options;
}

Expand Down

0 comments on commit aec73ea

Please sign in to comment.