PyThaiNLP / pythaiasr

Python Thai Automatic Speech Recognition
Apache License 2.0
62 stars 13 forks source link

RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same #4

Closed anhthoai closed 2 years ago

anhthoai commented 2 years ago

Hello,

I always get this error when run print(asr(file)), any help with that? I'm running that colab. /usr/local/lib/python3.7/dist-packages/torch/nn/modules/conv.py in _conv_forward(self, input, weight, bias) 296 _single(0), self.dilation, self.groups) 297 return F.conv1d(input, weight, bias, self.stride, --> 298 self.padding, self.dilation, self.groups) 299 300 def forward(self, input: Tensor) -> Tensor:

RuntimeError: Input type (torch.cuda.FloatTensor) and weight type (torch.FloatTensor) should be the same