Skip to content

Commit

Permalink
Ran black format and removed the attr_registry_map.h import as it was…
Browse files Browse the repository at this point in the history
… running into some other issue because of which build was failing
  • Loading branch information
sdalvi-quic committed Jul 23, 2024
1 parent d7c7e22 commit 50b44f5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
1 change: 0 additions & 1 deletion src/tir/transforms/using_assume_to_reduce_branches.cc
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@
* 4. This pass currently works for op_pattern kElemWise and kBroadcast.
*/

#include <tvm/node/attr_registry_map.h>
#include <tvm/relax/expr.h>
#include <tvm/relay/op_attr_types.h>
#include <tvm/tir/builtin.h>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -631,23 +631,17 @@ def main(

def test_add_primfunc_overcompute():
add_after = tvm.tir.transform.UseAssumeToReduceBranches()(AddBefore)
tvm.ir.structural_equal(
add_after["add"], AddExpected["add"], map_free_vars=True
)
tvm.ir.structural_equal(add_after["add"], AddExpected["add"], map_free_vars=True)


def test_sub_primfunc_overcompute():
sub_after = tvm.tir.transform.UseAssumeToReduceBranches()(SubBefore)
tvm.ir.structural_equal(
sub_after["sub"], SubExpected["sub"], map_free_vars=True
)
tvm.ir.structural_equal(sub_after["sub"], SubExpected["sub"], map_free_vars=True)


def test_mul_primfunc_overcompute():
mul_after = tvm.tir.transform.UseAssumeToReduceBranches()(MulBefore)
tvm.ir.structural_equal(
mul_after["mul"], MulExpected["mul"], map_free_vars=True
)
tvm.ir.structural_equal(mul_after["mul"], MulExpected["mul"], map_free_vars=True)


if __name__ == "__main__":
Expand Down

0 comments on commit 50b44f5

Please sign in to comment.