@@ -535,11 +535,11 @@ def mock_compile_train_step(*args, compiler_options=None, **kwargs):
535535 if not enable_python_cache :
536536 # As of Jax >= 0.6.0, enable_python_cache=False no longer affects the
537537 # AOT compilation path. We now expect the cache hits to be 0
538- if jax .__version__ >= "0.6.0" :
539- pytest .skip (
540- # pylint: disable-next=line-too-long
541- "AOT compilation path is not affected by 'enable_python_cache' with Jax >= 0.6.0"
542- )
538+ # if jax.__version__ >= "0.6.0":
539+ pytest .skip (
540+ # pylint: disable-next=line-too-long
541+ "AOT compilation path is not affected by 'enable_python_cache' with Jax >= 0.6.0"
542+ )
543543 # We expect to have hit the lowering cache on all but one step.
544544 self .assertEqual (end_cache_hits - start_cache_hits , cfg .max_step - 1 )
545545 self .assertEqual (mocked_compile_fn .call_count , cfg .max_step )
@@ -551,11 +551,11 @@ def mock_compile_train_step(*args, compiler_options=None, **kwargs):
551551 self .assertEqual (compiled_with_options_call_count [0 ], 2 )
552552 else :
553553 if not enable_python_cache :
554- if jax .__version__ >= "0.6.0" :
555- pytest .skip (
556- # pylint: disable-next=line-too-long
557- "AOT compilation path is not affected by 'enable_python_cache' with Jax >= 0.6.0"
558- )
554+ # if jax.__version__ >= "0.6.0":
555+ pytest .skip (
556+ # pylint: disable-next=line-too-long
557+ "AOT compilation path is not affected by 'enable_python_cache' with Jax >= 0.6.0"
558+ )
559559 self .assertEqual (end_cache_hits - start_cache_hits , cfg .max_step - 1 )
560560 self .assertEqual (mocked_compile_fn .call_count , cfg .max_step )
561561 else :
0 commit comments