Thanks.  It seems that the issue has to do with if the tensor is a Variable.

import torch
from torch.autograd import Variable
a = torch.ones(1)
a.type()
'torch.FloatTensor’
type(a)
< class ‘torch.FloatTensor’>
b = Variable(a)
print(b.type())
TypeError: type() missing 1 required positional argument: 't’
print(b.data.type())
< class ‘torch.FloatTensor’>