Skip to content
This repository has been archived by the owner on Nov 6, 2024. It is now read-only.

Use of deprecated Jax APIs/behavior #8

Open
pfrommerd opened this issue Jan 17, 2023 · 1 comment
Open

Use of deprecated Jax APIs/behavior #8

pfrommerd opened this issue Jan 17, 2023 · 1 comment

Comments

@pfrommerd
Copy link

Trajax uses deprecated Jax APIs/behavior which result in warnings being emitted in two locations.

  1. The first instance is at
    @partial(jit, static_argnums=(0, 1, 9))

    where argnum 9 is specified although the function only has 8 arguments. This results in the warning:
jax/_src/api_util.py:165: SyntaxWarning: Jitted function has static_argnums=(0, 1, 9), but only accepts 8 positional arguments. 
This warning will be replaced by an error after 2022-08-20 at the earliest.
  1. The second warning is at
    K = -sp.linalg.solve(G_, H, sym_pos=True)

    which raises the following warning
trajax/tvlqr.py:98: FutureWarning: The sym_pos argument to solve() is deprecated and will be removed in a future JAX release. Use assume_a='pos' instead.
@J4nn1K
Copy link

J4nn1K commented Mar 11, 2023

The second warning should be fixed in #10.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants