-
Tensor Manipulation: Sinusoidal Positional Encoding
### Description Implement the sinusoidal positional encoding from the "Attention Is All You Need" paper. This technique adds information about the position of tokens in a sequence by injecting a...
-
Tensor Manipulation: Creating `unfold` with `as_strided`
### Description **Warning: `as_strided` is an advanced and potentially unsafe operation that can crash your program if used incorrectly, as it creates a view on memory without checks.** With that...
1