View Source Changelog

v0-4-0-2022-10-25

v0.4.0 (2022-10-25)

enhancements

Enhancements

  • [Nx] Add Nx.rename/2, Nx.median/2, Nx.weighted_mean/3, and Nx.mode/2
  • [Nx] Implement cumulative operations using associative scan for improved performance
  • [Nx.Constants] Add smallest_positive_normal, min, and max
  • [Nx.Defn] Allow lists and functions anywhere as arguments in defn, jit and compile
  • [Nx.Defn] Add Nx.LazyContainer that allows a data-structure to lazily define tensors
  • [Nx.Defn] Allow tensors and ranges as generators inside while
  • [Nx.Defn] Add debug_expr/2 and debug_expr_apply/3
  • [Nx.Defn.Evaluator] Calculate cache lifetime to reduce memory usage on large numerical programs
  • [Nx.LinAlg] Handle Hermitian matrices in eigh
  • [Nx.LinAlg] Support batched operations in adjoint, cholesky, determinant, eigh, invert, lu, matrix_power, solve, svd, and triangular_solve
  • [Nx.Random] Support pseudo random number generators algorithms

bug-fixes

Bug fixes

  • [Nx] Perform window_reduce/reduce operations from infinity and negative infinity
  • [Nx.Defn] Ensure defnp emits warnings when unused
  • [Nx.Defn] Warn on unused variables in while

deprecations

Deprecations

v0-3-0-2022-08-13

v0.3.0 (2022-08-13)

enhancements-1

Enhancements

deprecations-1

Deprecations

  • [Nx] Nx.to_batched_list/3 is deprecated in favor of Nx.to_batched/3
  • [Nx.Defn] transform/2 is deprecated in favor of deftransform/2 and deftransformp/2
  • [Nx.Defn] assert_shape/2 and assert_shape_pattern/2 are deprecated in favor of case/2 + raise/2
  • [Nx.Defn] inspect_expr/1 and inspect_value/1 are deprecated in favor of print_expr/1 and print_value/1 respectively

v0-2-1-2022-06-04

v0.2.1 (2022-06-04)

enhancements-2

Enhancements

  • [Nx] Improve support for non-finite values in Nx.tensor/1
  • [Nx] Use iovec on serialization to avoid copying binaries
  • [Nx.BinaryBackend] Improve for complex numbers in Nx.tensor/1
  • [Nx.Defn] Improve for complex numbers inside defn

bug-fixes-1

Bug fixes

  • [Nx] Properly normalize type in Nx.from_binary/3
  • [Nx.Defn] Raise on Nx.Defn.Expr as JIT argument
  • [Nx.Defn.Evaluator] Handle concatenate arguments on evaluator

v0-2-0-2022-04-28

v0.2.0 (2022-04-28)

This version requires Elixir v1.13+.

enhancements-3

Enhancements

v0-1-0-2022-01-06

v0.1.0 (2022-01-06)

First release.