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