Skip to content

Commit d96ec64

Browse files
authored
remove torch dialect from legal list (#1192)
1 parent dd2da5a commit d96ec64

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/Conversion/TorchToMhlo/TorchToMhlo.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,7 @@ class ConvertTorchToMhlo : public ConvertTorchToMhloBase<ConvertTorchToMhlo> {
4343
MLIRContext *context = &getContext();
4444
ConversionTarget target(*context);
4545
target.addLegalDialect<chlo::ChloDialect, mhlo::MhloDialect,
46-
tensor::TensorDialect, arith::ArithmeticDialect,
47-
Torch::TorchDialect>();
46+
tensor::TensorDialect, arith::ArithmeticDialect>();
4847

4948
TypeConverter typeConverter;
5049
typeConverter.addConversion([](Type type) { return type; });

0 commit comments

Comments
 (0)