PyTorch: Tensorの成分数を取得
PyTorch:
Tensor
の
成分数
を取得
x.shape.numel()
#numel
#shape
#PyTorch