Skip to content
This repository was archived by the owner on Apr 19, 2026. It is now read-only.
This repository was archived by the owner on Apr 19, 2026. It is now read-only.

typos in "PyTorch Example"  #27

@AxelBreuer

Description

@AxelBreuer

Hi,

First at all, thanks a lot for sharing the implementation of your beautiful algo !

As soon I heard of it, I wanted to try it out by copy-pasting the example on your github mainpage.

I suspect that the "PyTorch Example" section in your main markdown has 2 minor typos:

  1. >>> from pytorch_ops import soft_rank, soft_sort
    should be replaced by >>> from fast_soft_sort.pytorch_ops import soft_rank, soft_sort

  2. >>> values = fast_soft_sort.torch.tensor([[5., 1., 2.], [2., 1., 5.]], dtype=torch.float64) should be replaced by >>> values = torch.tensor([[5., 1., 2.], [2., 1., 5.]], dtype=torch.float64)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions