Skip to content

Commit ba5543b

Browse files
fix: Add filterwarnings ignore for Pytorch virtualized device UserWarning (#2380)
* Add an ignore to filterwarnings to avoid PyTorch virtualized device UserWarning on virtualized Apple hardware. > UserWarning: Skipping device Apple Paravirtual device that does not > support Metal 2.0. - c.f. pytorch/pytorch#111576
1 parent 43a84a4 commit ba5543b

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,7 @@ filterwarnings = [
216216
"ignore:module 'sre_constants' is deprecated:DeprecationWarning", # tensorflow v2.12.0+ for Python 3.11+
217217
"ignore:ml_dtypes.float8_e4m3b11 is deprecated.", #FIXME: Can remove when jaxlib>=0.4.12
218218
"ignore:jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the:DeprecationWarning", # Issue #2139
219+
"ignore:Skipping device Apple Paravirtual device that does not support Metal 2.0:UserWarning", # Can't fix given hardware/virtualized device
219220
]
220221

221222
[tool.coverage.run]

0 commit comments

Comments
 (0)