arnab-polymage
arnab-polymage
Add compilation support for dynamic shapes.
Whenever the result of a div, mod or mul affine expression is a constant expression, place the value in the constant index of the flattened expression instead of adding it...
I have been working on MLIR and compiler development since past three years, and have been contributing actively to the repository.
Python file contents: ``` import torch import torchvision.models as models import torch_mlir model = torch.hub.load('mateuszbuda/brain-segmentation-pytorch', 'unet', in_channels=3, out_channels=1, init_features=32, pretrained=True) model.eval() data = torch.randn(2,3,200,200) out_mhlo_mlir_path = "./resnet18_mhlo.mlir" module = torch_mlir.compile(model,...