Skip to content

Commit

Permalink
add bf16 override for directml
Browse files Browse the repository at this point in the history
Signed-off-by: Vladimir Mandic <[email protected]>
  • Loading branch information
vladmandic committed Sep 30, 2024
1 parent d0f9450 commit c21a10b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/devices.py
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ def test_bf16():
global bf16_ok # pylint: disable=global-statement
if bf16_ok is not None:
return bf16_ok
if sys.platform == "darwin" or backend == 'openvino': # override
if sys.platform == "darwin" or backend == 'openvino' or backend == 'directml': # override
bf16_ok = False
return bf16_ok
try:
Expand Down

0 comments on commit c21a10b

Please sign in to comment.