)]}'
{
  "commit": "8953bcf037d2c48e044225ab3579ebbb31d66c51",
  "tree": "ba596115d6c94ee3f97a5a06120ab7c5625adbee",
  "parents": [
    "a7c6a5eb75c1f300c6500d4c9f8b0099f08532c7"
  ],
  "author": {
    "name": "Anutosh Bhat",
    "email": "andersonbhat491@gmail.com",
    "time": "Tue Nov 17 06:16:08 2026 +0530"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Tue Nov 17 00:46:08 2026 +0000"
  },
  "message": "[Python] Add Torch dialect registration modules (#25251)\n\nI hit this while profiling PyTorch graph import through Turbine/IREE.\nMLIR\u0027s Python bindings look for `iree.compiler.dialects.torch` and\n`torch_c`, but neither module exists. Failed dialect imports are retried\nduring type construction and operation inspection, producing roughly\n38,000 failed lookups for D-FINE.\n\nThis adds standard Python namespace registrations for the existing\nnative Torch and TorchConversion dialects and includes them in the\nPython package. Operations continue to use generic OpViews.\n\nI\u0027ve added coverage to the existing registration test, which fails\nbefore and passes after the change. With LLVM/MLIR 23.1.2 in Wasm64,\nD-FINE\u0027s graph import/preparation dropped from 15.3 s to 1.9 s, and its\nfirst model call from 45.8 s to 32.0 s. CPU and WebGPU correctness\nchecks still pass.\n\nSigned-off-by: anutosh491 \u003candersonbhat491@gmail.com\u003e",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "5129153f392316cecb1f78b780ddee5bdbc310eb",
      "old_mode": 33188,
      "old_path": "compiler/bindings/python/CMakeLists.txt",
      "new_id": "51321015a4339adcbe0b8bb07d6c8889ce6822fc",
      "new_mode": 33188,
      "new_path": "compiler/bindings/python/CMakeLists.txt"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "3baeb4f54f616b88a32182a21fde098b40dc349e",
      "new_mode": 33188,
      "new_path": "compiler/bindings/python/iree/compiler/dialects/torch.py"
    },
    {
      "type": "add",
      "old_id": "0000000000000000000000000000000000000000",
      "old_mode": 0,
      "old_path": "/dev/null",
      "new_id": "c096135ed4d2606ca89eee1e95779e4da7cdc5b8",
      "new_mode": 33188,
      "new_path": "compiler/bindings/python/iree/compiler/dialects/torch_c.py"
    },
    {
      "type": "modify",
      "old_id": "33c8f0036b7e485ddf18ca86c1b223bdef1d0031",
      "old_mode": 33188,
      "old_path": "compiler/bindings/python/test/ir/registration_test.py",
      "new_id": "e6dbc97bcdc1ba88e207553dc4fd4198c38f0027",
      "new_mode": 33188,
      "new_path": "compiler/bindings/python/test/ir/registration_test.py"
    }
  ]
}
