Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
willow-ahrens committed Nov 22, 2024
1 parent 7cda878 commit e51b2df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions test/test_interface.jl
Original file line number Diff line number Diff line change
Expand Up @@ -169,10 +169,12 @@ using Finch.FinchNotation: finch_unparse_program, @finch_program_instance
ref = reshape(c_raw, 10, 10, 1) .* reshape(a_raw, 10, 1, 5) .* reshape(b_raw, 1, 10, 5);

plan = c[:, :, nothing] .* a[:, nothing, :] .* b[nothing, :, :];
@test compute(plan) == ref
res = compute(plan)
@test norm(res - ref)/norm(ref) < 0.01

plan = broadcast(*, broadcast(*, c[:, :, nothing], a[:, nothing, :]), b[nothing, :, :]);
@test compute(plan) == ref
res = compute(plan)
@test norm(res - ref)/norm(ref) < 0.01
end

#https://github.com/finch-tensor/Finch.jl/issues/536
Expand Down

0 comments on commit e51b2df

Please sign in to comment.