Skip to content

pytorch 2: TypedStorage is deprecated #5862

@rijobro

Description

@rijobro

Describe the bug

With pytorch 2, I'm getting lots of instances of this warning:

/home/rbrown/miniconda3/envs/py3.11/lib/python3.11/site-packages/torch/_tensor.py:1287: UserWarning: TypedStorage is deprecated. It will be removed in the future and UntypedStorage will be the only storage class. This should only matter to you if you are using storages directly. To access UntypedStorage directly, use tensor.untyped_storage() instead of tensor.storage()
ret = func(*args, **kwargs)

The only usage of torch.storage() is here, so I suspect that's the problem. @wyli I see you added the code, can we do without it or modify it?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions