Open zacky1972 opened 1 year ago
Almost issues fixed (working branch is issue/38
):
% mix test
make: Nothing to be done for `all'.
...............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
1) test multiply scalar and vector (PelemayBackend.BackendTest)
test/pelemay_backend/backend_test.exs:10
** (RuntimeError) the local variable 0 should be a tuple in case of aloadt
code: assert Nx.multiply(2.0, Nx.tensor([1.0, 2.0], type: {:f, 32})) ==
stacktrace:
(pelemay_backend 0.1.0-dev) lib/pelemay_backend/defn.ex:69: anonymous fn/2 in PelemayBackend.Defn.__compile__/4
(nx 0.4.2) lib/nx/defn.ex:457: Nx.Defn.do_jit_apply/3
test/pelemay_backend/backend_test.exs:11: (test)
...................................................................
2) test multiply scalar and vector(1000) (PelemayBackendTest)
test/pelemay_backend_test.exs:7
** (RuntimeError) the local variable 0 should be a tuple in case of aloadt
code: assert result == PelemayBackend.jit_apply(fun, [2.0, input])
stacktrace:
(pelemay_backend 0.1.0-dev) lib/pelemay_backend/defn.ex:69: anonymous fn/2 in PelemayBackend.Defn.__compile__/4
(nx 0.4.2) lib/nx/defn.ex:457: Nx.Defn.do_jit_apply/3
test/pelemay_backend_test.exs:11: (test)
Finished in 1.5 seconds (0.00s async, 1.5s sync)
594 doctests, 2 tests, 2 failures
Randomized with seed 879370