Skip to content

Commit a93191c

Browse files
jerryxyjOrbax Authors
authored andcommitted
Add option to persist_xla_flags from Orbax Native Models.
PiperOrigin-RevId: 833478316
1 parent d966ddf commit a93191c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

export/orbax/export/constants.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,13 @@ class ExportModelType(enum.Enum):
9797
# Mesh for the model.
9898
JAX_MESH = 'jax_mesh'
9999

100+
# TODO: b/459991985 - Remove this flag and use PERSIST_XLA_FLAGS instead.
100101
# Whether to strip XLA flags from the model.
101102
STRIP_XLA_FLAGS = 'strip_xla_flags'
102103

104+
# Whether to persist XLA flags in the model.
105+
PERSIST_XLA_FLAGS = 'persist_xla_flags'
106+
103107
################################################################################
104108
# Proto field names
105109
################################################################################

0 commit comments

Comments
 (0)