Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jonatanklosko committed Feb 23, 2024
1 parent 2a2d165 commit 15efa84
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions test/axon/compiler_test.exs
Original file line number Diff line number Diff line change
Expand Up @@ -5772,7 +5772,7 @@ defmodule CompilerTest do
assert %{"custom" => %{"a" => a}} =
params = init_fn.(Nx.template({1, 1}, :f32), %{})

assert predict_fn.(params, x) == Nx.add(x, a)
assert_equal(predict_fn.(params, x), Nx.add(x, a))
end

test "supports composite/map parameter types" do
Expand All @@ -5792,7 +5792,7 @@ defmodule CompilerTest do
assert %{"custom" => %{"composite" => %{"inner" => inner}}} =
params = init_fn.(Nx.template({1, 1}, :f32), %{})

assert predict_fn.(params, x) == Nx.add(x, inner)
assert_equal(predict_fn.(params, x), Nx.add(x, inner))
end

test "inner params in composite parameters initialize to different values" do
Expand Down Expand Up @@ -5834,7 +5834,7 @@ defmodule CompilerTest do
assert %{"custom" => %{"composite" => %{"inner_composite" => %{"a" => a}}}} =
params = init_fn.(Nx.template({1, 1}, :f32), %{})

assert predict_fn.(params, x) == Nx.add(x, a)
assert_equal(predict_fn.(params, x), Nx.add(x, a))
end
end
end

0 comments on commit 15efa84

Please sign in to comment.