warp-ctc icon indicating copy to clipboard operation
warp-ctc copied to clipboard

compile against latest pytorch, failed

Open northeastsquare opened this issue 6 years ago • 4 comments

src/_warpctc.cpp:99:71: error: ‘struct at::Type’ has no member named ‘tensor’ at::Tensor workspace = activations.type().toScalarType(at::kByte).tensor(workspace_size)

northeastsquare avatar Dec 06 '18 06:12 northeastsquare

Thanks for reporting! I'll fix this after 1.0 comes out soon. Please note that I recommend to use PyTorch's native CTC Loss instead, I'll put up a wrapper providing compatibility in terms of output scaling.

t-vi avatar Dec 06 '18 06:12 t-vi

@t-vi I use pytorch ctc loss, But back prop grad with many nan

northeastsquare avatar Dec 08 '18 02:12 northeastsquare

@t-vi compile pytorch1.3 failed. src/_warpctc.cpp:10:34: fatal error:ATen/cuda/CUDAStream.h:No such file or directory Any Idea?

simonwang517 avatar Dec 06 '19 10:12 simonwang517

Basically, don't use this library.

As of today, PyTorch (master) comes with its own implementation of the CTC loss. It has CuDNN support and fast CUDA and reasonably fast CPU backend. I recommend using that going forward.

t-vi avatar Dec 06 '19 11:12 t-vi