Skip to content

Commit e6b19df

Browse files
naibaf7patrickdoc
authored andcommitted
[Integrate] Bump LLVM version to 72efe15c2bf262607420f81ab3b3b52f82698b4b (#54922)
- Previously it was assumed that nb::gil_scoped_release release; could not be used for compiling torch models, due to handling `PyDenseResourceElementsAttribute` in constant folding. However, there is no guarantee that the thread releasing the PyDenseResource will be holding the GIL (this was addressed in llvm/llvm-project#124832). This PR avoids GIL deadlocks by releasing the GIL in both code paths. - Unblocks Python 3.12 support. - Update lldb20.0.0git to lldb21.0.0git - Add `funcRange.front().GetBaseAddress()` to the `Function` constructor call. - Additional dependencies from LLVM/MLIR are necessary since they are no longer included transitively. - llvm/llvm-project#123488 causes new dependencies on UBDialect. MAX_GRAPH_API_ORIG_REV_ID: cab252a7205f18c0a1320bc4e0f1689f2731932a
1 parent 1f25c38 commit e6b19df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/max/graph/test_graph.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ def test_invalid_operand() -> None:
210210
],
211211
) as graph:
212212
input_tensor = graph.inputs[0]
213-
with pytest.raises(AssertionError):
213+
with pytest.raises(ValueError):
214214
Graph.current._add_op(rmo.add, [2, 5], input_tensor)
215215
graph.output(input_tensor)
216216

0 commit comments

Comments
 (0)