Skip to content

Fix warning for deprecated storage in Pytroch interface #3273

@mdouze

Description

@mdouze

Summary

For all methods that use the torch_utils package, there is a warning

faiss/contrib/torch_utils.py:44: 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()

This is annoying and will break in the future, so let's address this (we tried to do it before, but it did break with older pytorch)

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions