Open wangwustat opened 4 months ago
Dear fellows,
Thanks for your great work. The functions torch_triu_indices and torch_tril_indices return 0-based index in torch 0.12.0.
torch_triu_indices
torch_tril_indices
For example,
torch_triu_indices(2, 2, offset=1)
returns
torch_tensor 0 1 [ CPULongType{2,1} ]
Dear fellows,
Thanks for your great work. The functions
torch_triu_indices
andtorch_tril_indices
return 0-based index in torch 0.12.0.For example,
torch_triu_indices(2, 2, offset=1)
returns
torch_tensor 0 1 [ CPULongType{2,1} ]