)]}'
{
  "commit": "ec0026e0bc8b7904b29e167e39b252c7e2794d4a",
  "tree": "3d302aec19324423b22b0ceaa0af853a0b343df0",
  "parents": [
    "d6e63342df38018e2911f89bb888ad872dde9a69"
  ],
  "author": {
    "name": "Guan-Ming (Wesley) Chiu",
    "email": "105915352+guan404ming@users.noreply.github.com",
    "time": "Tue Dec 02 04:21:32 2025 +0800"
  },
  "committer": {
    "name": "GitHub",
    "email": "noreply@github.com",
    "time": "Mon Dec 01 15:21:32 2025 -0500"
  },
  "message": "[Relax][PyTorch] Fix index_put with broadcast indices (#18533)\n\n## Related Issue\n\ncloses https://github.com/apache/tvm/issues/18355\n\n## Why\n\nConverting PyTorch operations like M[:, rows, cols] \u003d x failed because:\n1. The TOPI index_put implementation called len() on TVM Tensor objects\n(unsupported)\n2. Index tensors with different shapes (e.g., (2,) and (10,)) couldn\u0027t\nbroadcast together\n\n## How\n\n- Added broadcasting support following NumPy rules to handle\nmulti-dimensional index tensors\n- add tests for batched indexing pattern M[:, rows, cols] \u003d x",
  "tree_diff": [
    {
      "type": "modify",
      "old_id": "e9a9cdd9394f2f86051cbb1bdfb9335fa71689d9",
      "old_mode": 33188,
      "old_path": "python/tvm/relax/frontend/torch/base_fx_graph_translator.py",
      "new_id": "7ebb95c136f33886e4fc2833e9783f9a984ca7e5",
      "new_mode": 33188,
      "new_path": "python/tvm/relax/frontend/torch/base_fx_graph_translator.py"
    },
    {
      "type": "modify",
      "old_id": "bb134f11485598e316e548038c5d098272e4ea1d",
      "old_mode": 33188,
      "old_path": "python/tvm/relax/op/manipulate.py",
      "new_id": "ee486b0ab69c8bccc1c3c40b73197137f97065a8",
      "new_mode": 33188,
      "new_path": "python/tvm/relax/op/manipulate.py"
    },
    {
      "type": "modify",
      "old_id": "f51c6718ab99e88dad4ac3dfe5b2caa8a8ba649e",
      "old_mode": 33188,
      "old_path": "python/tvm/topi/index_put.py",
      "new_id": "52406d402cdd6540fcfd3d16d086cd3ef8d41aa4",
      "new_mode": 33188,
      "new_path": "python/tvm/topi/index_put.py"
    },
    {
      "type": "modify",
      "old_id": "0658dbfaf31e182ca0ec70626eec13e8c00e52e1",
      "old_mode": 33188,
      "old_path": "tests/python/relax/test_frontend_from_exported_program.py",
      "new_id": "010bd026a8ba691e5ed9a0ce4e04eb0a79bddec6",
      "new_mode": 33188,
      "new_path": "tests/python/relax/test_frontend_from_exported_program.py"
    }
  ]
}
