For me if PyTorch is installed, without this patch the test fails with
Traceback (most recent call last):
File ".../test_backend.py", line 20, in <module>
@pytest.mark.skipif(skip_test_backend, reason="PyTorch is not installed.")
NameError: name 'skip_test_backend' is not defined
For me if PyTorch is installed, without this patch the test fails with