Skip to content

Commit

Permalink
add error message when the backend is not tensorflow, pytorch or jax
Browse files Browse the repository at this point in the history
  • Loading branch information
enigne committed Nov 4, 2024
1 parent 5553911 commit 93f833f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pinnicle/utils/backends_specified.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,5 @@ def jacobian_jax(output_var, input_var, i, j, val=0):
elif backend_name == "jax":
slice_column = slice_column_jax
jacobian = jacobian_jax
else:
raise ValueError(f"{backend_name} is not supported by PINNICLE")

0 comments on commit 93f833f

Please sign in to comment.