Skip to content

Commit

Permalink
Switch to torch decomposition from linalg lowering
Browse files Browse the repository at this point in the history
  • Loading branch information
jinchen62 committed Nov 13, 2024
1 parent 5a4f5fc commit fe96416
Show file tree
Hide file tree
Showing 5 changed files with 280 additions and 185 deletions.
1 change: 0 additions & 1 deletion lib/Conversion/TorchToLinalg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ add_mlir_conversion_library(TorchMLIRTorchToLinalg
TensorConstructors.cpp
TensorScalarInterop.cpp
TorchToLinalg.cpp
TorchvisionOp.cpp
Uncategorized.cpp
Utils.cpp

Expand Down
3 changes: 0 additions & 3 deletions lib/Conversion/TorchToLinalg/PopulatePatterns.h
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,6 @@ void populateIndirectDataMovementPatternsAndLegality(
void populateTensorConstructorsPatternsAndLegality(TypeConverter &typeConverter,
RewritePatternSet &patterns,
ConversionTarget &target);
void populateTorchvisionPatternsAndLegality(TypeConverter &typeConverter,
RewritePatternSet &patterns,
ConversionTarget &target);

} // namespace torch_to_linalg
} // namespace torch
Expand Down
2 changes: 0 additions & 2 deletions lib/Conversion/TorchToLinalg/TorchToLinalg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ class ConvertTorchToLinalg
typeConverter, patterns, target);
torch_to_linalg::populateTensorConstructorsPatternsAndLegality(
typeConverter, patterns, target);
torch_to_linalg::populateTorchvisionPatternsAndLegality(typeConverter,
patterns, target);

if (failed(applyPartialConversion(getOperation(), target,
std::move(patterns))))
Expand Down
178 changes: 0 additions & 178 deletions lib/Conversion/TorchToLinalg/TorchvisionOp.cpp

This file was deleted.

Loading

0 comments on commit fe96416

Please sign in to comment.