Skip to content

Commit fc7c03e

Browse files
Merge pull request #426 from edgexyz:main
PiperOrigin-RevId: 949051321
2 parents 217ee1c + f62927f commit fc7c03e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/maxdiffusion/generate_wan.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ def run(config, pipeline=None, filename_prefix="", commit_hash=None):
408408
s0 = time.perf_counter()
409409
# Restore original profiler setting for the profiling run
410410
config.get_keys()["enable_profiler"] = original_enable_profiler
411-
if max_utils.profiler_enabled(config):
411+
if original_enable_profiler:
412412
# Injecting user requested XLA tracing flags
413413
xla_flags = os.environ.get("XLA_FLAGS", "")
414414
new_flags = "--xla_enable_mxu_trace=true --xla_jf_dump_llo_html=true --xla_tpu_enable_llo_profiling=true"

0 commit comments

Comments
 (0)