Skip to content

Commit

Permalink
Allow skip tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Schweer committed Oct 30, 2024
1 parent 913ea6b commit 8286e1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/link/pytorch/test_blockwise.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
import pytensor.tensor as pt
from pytensor.graph.basic import Apply
from pytensor.graph.op import Op
from pytensor.link.pytorch.dispatch.basic import pytorch_funcify
from pytensor.tensor.blockwise import Blockwise


torch = pytest.importorskip("torch")
basic = pytest.importorskip("pytensor.link.pytorch.dispatch.basic")


class TestOp(Op):
Expand All @@ -27,7 +27,7 @@ def perform(self, *_):
raise RuntimeError("In perform")


@pytorch_funcify.register(TestOp)
@basic.pytorch_funcify.register(TestOp)
def evaluate_test_op(op, **_):
@torch.compiler.disable(recursive=False)
def func(a, b):
Expand Down

0 comments on commit 8286e1b

Please sign in to comment.