Skip to content

DLPack deprecation working #782

Description

@mrava87

Fix calls to DLPack in TorchOperator based on this warning

/site-packages/pylops/_torchoperator.py:37: VisibleDeprecationWarning: This function is deprecated and will be removed in a future release. Use the cupy.from_dlpack() array constructor instead.
  x = cp.fromDlpack(to_dlpack(x))
/site-packages/pylops/_torchoperator.py:48: VisibleDeprecationWarning: This function is deprecated and will be removed in a future release. Use the cupy.from_dlpack() array constructor instead.
  y = from_dlpack(y.toDlpack())

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions