torch-mlir/lib/Dialect/Torch/IR
Sean Silva 224afb186e Add folders for torch.aten.gt.int / torch.aten.ne.int
This fixes a "regression" on ResNet where we weren't folding away all
the control flow. For now, our policy is to "optimize hard enough" to
make that control flow go away, because we don't yet have a way to lower
to the backend the stuff guarded by the control flow (RaiseException,
string operations, etc.).

It remains to be seen how much optimization we decide to do at this
level in the fullness of time -- the torch op set is not particularly
well-designed (at least not idiomatically for MLIR) for general
optimization. Ideally, with really good backend support for various
features, all the heavy optimization will happen at that layer on `std`
ops and `scf` control flow. But I have a suspicion we might end up
needing more optimization earlier in the pipeline.
2021-06-16 14:04:31 -07:00
..
CMakeLists.txt Add `!torch.bool` type. 2021-06-16 13:22:00 -07:00
TorchDialect.cpp Add `!torch.bool` type. 2021-06-16 13:22:00 -07:00
TorchOps.cpp Add folders for torch.aten.gt.int / torch.aten.ne.int 2021-06-16 14:04:31 -07:00
TorchTypes.cpp Add `!torch.tuple<T1, T2>` type. 2021-06-15 08:15:22 -07:00