Skip to content

Not implemented for type Half #49

Open
@Stonesjtu

Description

@Stonesjtu

I followed the tutorial to create my cpp_extension. But the module failed to do half-precision computation.

It gives:

RuntimeError: "op" not implemented for 'Half' (operator() at /op_cuda_kernel.cu:146)
frame #0: c10::Error::Error(c10::SourceLocation, std::string const&) + 0x47 (0x7fa561676687 in /miniconda3/lib/python3.7/site-packages/torch/lib/libc10.so)

When submitting a bug report, please include the following information (where relevant):

  • OS: Centos
  • PyTorch version: 1.3.0
  • How you installed PyTorch (conda, pip, source): conda
  • Python version: 3.7
  • CUDA/cuDNN version: 10/7
  • GPU models and configuration: 1080
  • GCC version (if compiling from source):7.4.0

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