tvm_tirx.tirx.analysis.check_well_formed

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:
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:

bool