Skip to content
This repository was archived by the owner on Feb 3, 2025. It is now read-only.

Commit dbbfd33

Browse files
author
DEKHTIARJonathan
committed
[Benchmarking Py] TF_ENABLE_LAYOUT_NHWC=1 added
1 parent ec5a268 commit dbbfd33

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tftrt/benchmarking-python/benchmark_runner.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,9 @@ def evaluate_model(self, predictions, expected, bypass_data_to_eval):
7474
def __init__(self, args):
7575
self._args = args
7676

77+
# Temporary fix to re-enable NHWC layout.
78+
os.environ["TF_ENABLE_LAYOUT_NHWC"] = "1"
79+
7780
if args.use_xla_auto_jit:
7881
logging.info("[Benchmark] - Activating XLA JIT Auto Clustering")
7982
os.environ["TF_XLA_FLAGS"] = "--tf_xla_auto_jit=2"

0 commit comments

Comments
 (0)