quantized.pytorch icon indicating copy to clipboard operation
quantized.pytorch copied to clipboard

Prediction with quantized model

Open indrajitsg opened this issue 6 years ago • 0 comments

Hi,

I am trying to run prediction but hitting a roadblock with CUDA not supporting Byte tensor:

d, l = next(iter(train_loader))
d, l = d.type(torch.ByteTensor), l.type(torch.ByteTensor)
d, l = Variable(d.cuda()), Variable(l.cuda())
model_q(d)

Any thoughts how can I directly use a quantized model?

indrajitsg avatar Sep 14 '18 10:09 indrajitsg