Hello,
Not sure why my code isn’t working for Question 2
And Question 4:
can anyone assist?
for question 2 I have already tried:
combined = torch.cat((x,y),1).float()
and I get this error:
RuntimeError: Expected object of scalar type Long but got scalar type Float for sequence element 1 in sequence argument at position #1 ‘tensors’
Hi @grantglass
Setting x to the type float is by calling x.type(torch.float). The same apply to y.
By setting x and y to the correct datatype, both of your problems would be resolved.