mirror of
https://github.com/pytorch/pytorch.git
synced 2025-10-20 21:14:14 +08:00
As in the title. Replaces https://github.com/pytorch/pytorch/pull/120498 and https://github.com/pytorch/pytorch/pull/120562 Pull Request resolved: https://github.com/pytorch/pytorch/pull/120707 Approved by: https://github.com/ezyang ghstack dependencies: #120703
24 lines
1.2 KiB
Plaintext
24 lines
1.2 KiB
Plaintext
########## torch.float64/torch.int64/size=()+(4, 6)+()+() ##########
|
|
# sparse meta tensor
|
|
tensor(crow_indices=tensor(..., size=(5,)),
|
|
col_indices=tensor(..., size=(0,)),
|
|
values=tensor(..., size=(0,)), device='meta', size=(4, 6),
|
|
dtype=torch.float64, layout=torch.sparse_csr)
|
|
########## torch.float64/torch.int64/size=()+(4, 6)+()+(3,) ##########
|
|
# sparse meta tensor
|
|
tensor(crow_indices=tensor(..., size=(5,)),
|
|
col_indices=tensor(..., size=(0,)),
|
|
values=tensor(..., size=(0, 3)), device='meta', size=(4, 6, 3),
|
|
dtype=torch.float64, layout=torch.sparse_csr)
|
|
########## torch.float64/torch.int64/size=(2,)+(4, 6)+()+() ##########
|
|
# sparse meta tensor
|
|
tensor(crow_indices=tensor(..., size=(2, 5)),
|
|
col_indices=tensor(..., size=(2, 0)),
|
|
values=tensor(..., size=(2, 0)), device='meta', size=(2, 4, 6),
|
|
dtype=torch.float64, layout=torch.sparse_csr)
|
|
########## torch.float64/torch.int64/size=(2,)+(4, 6)+()+(3,) ##########
|
|
# sparse meta tensor
|
|
tensor(crow_indices=tensor(..., size=(2, 5)),
|
|
col_indices=tensor(..., size=(2, 0)),
|
|
values=tensor(..., size=(2, 0, 3)), device='meta', size=(2, 4, 6, 3),
|
|
dtype=torch.float64, layout=torch.sparse_csr) |