Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joe <joe@preferred.jp>
  • Loading branch information
emcastillo and xuzijian629 authored Dec 6, 2023
1 parent 2903273 commit f1fd387
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pytorch_pfn_extras/ops/register.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
class OpDesc:
"""Metadata to register an op to torch.library.
Attributed:
Attributes:
op (callable): code to be executed in the forward/backward of the op.
meta (callable): function to perform shape inference for forward/backward
passes.
Expand Down
2 changes: 1 addition & 1 deletion tests/pytorch_pfn_extras_tests/test_ops/test_register.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def _get_function_nodes(fx_module):

@pytest.mark.skipif(
not ppe.requires("2.1.0") or sys.platform == "win32",
reason="torch custom ops only works for PyTorch>2.1 and linux",
reason="torch custom ops only works for PyTorch>=2.1 and linux",
)
def test_register():
def test(a):
Expand Down

0 comments on commit f1fd387

Please sign in to comment.