Skip to content

RuntimeError: No such operator image::read_file #6693

Closed
@datumbox

Description

@datumbox

🐛 Describe the bug

The CI job unittest_windows_gpu_py3.8 stared failing with:

______ test_decode_jpeg_cuda[False-ImageReadMode.GRAY-gray_pytorch.jpg] _______
Traceback (most recent call last):
  File "C:\Users\circleci\project\env\lib\site-packages\torch\_ops.py", line 501, in __getattr__
    op, overload_names = torch._C._jit_get_operation(qualified_op_name)
RuntimeError: No such operator image::read_file

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "C:\Users\circleci\project\test\test_image.py", line 363, in test_decode_jpeg_cuda
    data = read_file(img_path)
  File "c:\users\circleci\project\torchvision\io\image.py", line 47, in read_file
    data = torch.ops.image.read_file(path)
  File "C:\Users\circleci\project\env\lib\site-packages\torch\_ops.py", line 505, in __getattr__
    raise AttributeError(
AttributeError: '_OpNamespace' 'image' object has no attribute 'read_file'

It seems like the kernel is not registered properly. Might be related to a change on Core.

Versions

The issue started appearing on torch-1.13.0.dev20221004 py3.8_cuda11.6_cudnn8_0

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions