Skip to content

Commit

Permalink
fix: Add filterwarnings ignore for Pytorch virtualized device UserWar…
Browse files Browse the repository at this point in the history
…ning (#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
  • Loading branch information
matthewfeickert authored Nov 17, 2023
1 parent 43a84a4 commit ba5543b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -216,6 +216,7 @@ filterwarnings = [
"ignore:module 'sre_constants' is deprecated:DeprecationWarning", # tensorflow v2.12.0+ for Python 3.11+
"ignore:ml_dtypes.float8_e4m3b11 is deprecated.", #FIXME: Can remove when jaxlib>=0.4.12
"ignore:jsonschema.RefResolver is deprecated as of v4.18.0, in favor of the:DeprecationWarning", # Issue #2139
"ignore:Skipping device Apple Paravirtual device that does not support Metal 2.0:UserWarning", # Can't fix given hardware/virtualized device
]

[tool.coverage.run]
Expand Down

0 comments on commit ba5543b

Please sign in to comment.