English
Shanci's picture
Upload folder using huggingface_hub
26225c5 verified
raw
history blame contribute delete
209 Bytes
import torch
__all__ = ['is_xyz_tensor']
def is_xyz_tensor(xyz):
if not isinstance(xyz, torch.Tensor):
return False
if not xyz.dim() == 2:
return False
return xyz.shape[1] == 3