This makes assertTensorEq work for ByteTensors

torch.ByteTensor has no abs(). Converting to doubles gives correct behaviour for ByteTensors, but no longer does type checking on the two tensor arguments. Is the intended behaviour of assertTensorEq to check that the types match?

Shouldn't we have tests for the test library?