Pytorch
torch
- judgement  1 
 2
 3
 4
 5torch.is_tensor(obj) 
 torch.is_storage(obj)
 torch.is_complex(obj)
 torch.is_floating_point(obj)
 torch.is_nonzero(obj)
- dtype  1 
 2torch.set_default_dtype(obj) 
 torch.get_default_dtype(obj)
- data from numpy  1 torch.from_numpy(ndarray)