Skip to content

Commit f0b10ef

Browse files
try to fix memory error
1 parent 94ea1a2 commit f0b10ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

keras/src/backend/jax/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def __init__(
8383

8484
# Initialize nnx.Variable first.
8585
# Determine the dtype for the placeholder.
86-
_placeholder_value = jnp.zeros(
86+
_placeholder_value = jax.ShapeDtypeStruct(
8787
shape or (), dtype=standardize_dtype(dtype)
8888
)
8989

0 commit comments

Comments
 (0)