Texonom
Texonom
/
Engineering
Engineering
/Data Engineering/Artificial Intelligence/AI Development/AI Framework/Pytorch/Pytorch Grammar/
torch.gather()
Search

torch.gather()

Creator
Creator
Seonglae Cho
Created
Created
2024 May 21 16:13
Editor
Editor
Seonglae Cho
Edited
Edited
2025 Mar 13 13:6
Refs
Refs
Gathers values along an axis specified by dim with indices.
 
 
 
 
 
 
torch.gather — PyTorch 2.3 documentation
input and index must have the same number of dimensions. It is also required that index.size(d) <= input.size(d) for all dimensions d != dim. out will have the same shape as index. Note that input and index do not broadcast against each other.
torch.gather — PyTorch 2.3 documentation
https://pytorch.org/docs/stable/generated/torch.gather.html
 
 

Recommendations

Texonom
Texonom
/
Engineering
Engineering
/Data Engineering/Artificial Intelligence/AI Development/AI Framework/Pytorch/Pytorch Grammar/
torch.gather()
Copyright Seonglae Cho