- 
                
                    Implementing a simplified Beam Search Decoder with `gather` and `scatter`Beam search is a popular decoding algorithm used in machine translation and text generation. A key step in beam search is to select the top-k most likely next tokens and update the corresponding... 
- 
                
                    Efficiently Updating a Sub-Tensor with `scatter_`Sometimes you need to update a portion of a larger tensor with values from a smaller tensor, where the update locations are specified by an index tensor. This is a common pattern in various... 
            
            
                
                    1