tvm_tirx.tirx.analysis.check_well_formed#
- tvm_tirx.tirx.analysis.check_well_formed(obj, assert_mode=True)#
Check whether a TIRx function is well formed.
- Parameters:
obj (Union[tvm_tirx.tirx.Function, tvm_tirx.ir.IRModule]) – The function or module to be verified.
assert_mode (bool) – Whether to raise on invalid IR. Defaults to True.
- Returns:
result (bool) – True for valid IR; False for invalid IR when assert_mode is False.
- Raises:
RuntimeError – If the IR is invalid and assert_mode is True.
- Return type: