torch.type is now part of torch