Skip to content

Commit 8b39577

Browse files
Merge pull request #48685 from Intel-tensorflow:mabuzain/fixing_timeline_test
PiperOrigin-RevId: 370538251 Change-Id: I6cf0b0a53330c7bade73f7782bb244dc9ae646ee
2 parents 20431e9 + 9f147ee commit 8b39577

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎tensorflow/python/framework/test_util.py‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,7 +338,8 @@ def GpuSupportsHalfMatMulAndConv():
338338

339339

340340
def IsMklEnabled():
341-
return _pywrap_util_port.IsMklEnabled()
341+
return (_pywrap_util_port.IsMklEnabled() or
342+
os.getenv("TF_ENABLE_ONEDNN_OPTS", "False").lower() in ["true", "1"])
342343

343344

344345
def InstallStackTraceHandler():

0 commit comments

Comments
 (0)