Skip to content

torch.cdist does not work #939

@aced125

Description

@aced125

Hi - torch cdist cuda is not implemented for fp16. How could I fix?

    return th.cdist(x, y, p=2)
  File "/home/ubuntu/anaconda3/envs/torch/lib/python3.7/site-packages/torch/functional.py", line 1119, in cdist
    return _VF.cdist(x1, x2, p, None)  # type: ignore
RuntimeError: "cdist_cuda" not implemented for 'Half'

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