Skip to content

Commit

Permalink
fix: renaming the USE_NATIVE_KERAS_LAYERS env variable
Browse files Browse the repository at this point in the history
  • Loading branch information
YushaArif99 committed Sep 18, 2024
1 parent 47ca552 commit 27dc926
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions ivy/stateful/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,9 @@ def _maybe_update_flax_layer_weights(layer, weight_name, new_weight):
import flax.nnx as nnx
import jax.numpy as jnp

has_keras_layers = os.environ.get("USE_NATIVE_KERAS_LAYERS", None) == "true"
has_flax_layers = os.environ.get("USE_NATIVE_FW_LAYERS", None) == "true"
transpose_weights = (
has_keras_layers
has_flax_layers
or os.environ.get("APPLY_TRANSPOSE_OPTIMIZATION", None) == "true"
)

Expand Down Expand Up @@ -286,7 +286,7 @@ def _maybe_update_keras_layer_weights(layer, weight_name, new_weight):
else:
KerasVariable = tf.Variable

has_keras_layers = os.environ.get("USE_NATIVE_KERAS_LAYERS", None) == "true"
has_keras_layers = os.environ.get("USE_NATIVE_FW_LAYERS", None) == "true"
transpose_weights = (
has_keras_layers
or os.environ.get("APPLY_TRANSPOSE_OPTIMIZATION", None) == "true"
Expand Down

0 comments on commit 27dc926

Please sign in to comment.