Hi, been tweaking the repo a bit, and wanted to try Half Tensor compatibility
So in the cuda, instead of AT_DISPATCH_FLOATING_TYPES here and here
I just changed the dispatch function to AT_DISPATCH_FLOATING_TYPES_AND_HALF, naively hoping that everything would work without changing anything else.
Unfortunately, I got this error (while only dispatching floating types work) :
lltm_cuda_kernel.cu(123): error: identifier "Half" is undefined
lltm_cuda_kernel.cu(157): error: identifier "Half" is undefined
Is there something i forgot to do ? apparently the Half is not recognized by the compiler like it is for float or double so maybe I need to include a header ? I tried #include <cuda_fp16.h> , #include <ATen/Half.h> and #include <ATen/Type.h> but it didn't work.
Thanks !
Clément
Hi, been tweaking the repo a bit, and wanted to try Half Tensor compatibility
So in the cuda, instead of
AT_DISPATCH_FLOATING_TYPEShere and hereI just changed the dispatch function to
AT_DISPATCH_FLOATING_TYPES_AND_HALF, naively hoping that everything would work without changing anything else.Unfortunately, I got this error (while only dispatching floating types work) :
Is there something i forgot to do ? apparently the
Halfis not recognized by the compiler like it is forfloatordoubleso maybe I need to include a header ? I tried#include <cuda_fp16.h>,#include <ATen/Half.h>and#include <ATen/Type.h>but it didn't work.Thanks !
Clément