Skip to content

Commit

Permalink
Fix bug in broadcast_to Op with Jax backend when keras variable as in…
Browse files Browse the repository at this point in the history
…put (keras-team#19118)

* Fix bug in broadcast_to Op with Jax backend when keras variable as input

* Fix format error

* convert_to_numpy chnaged to convert_to_tensor

* Removed duplicate import of convert_to_tensor
  • Loading branch information
SuryanarayanaY authored Jan 31, 2024
1 parent 186f872 commit 7736f67
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions keras/backend/jax/numpy.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ def average(x, axis=None, weights=None):


def broadcast_to(x, shape):
x = convert_to_tensor(x)
return jnp.broadcast_to(x, shape)


Expand Down

0 comments on commit 7736f67

Please sign in to comment.