Update sampler_explaination.md

This commit is contained in:
Extraltodeus
2025-04-27 04:18:37 +02:00
committed by GitHub
parent 232c2c4b6f
commit 1b49a42401
+3
View File
@@ -6,6 +6,7 @@
(I recommand to have the code on the side to follow)
---
The function _matrix\_batch\_slerp_ implements batched spherical linear interpolation (SLERP). SLERP is a technique used to interpolate between two points on a unit sphere along the great circle that connects them, maintaining a constant angular velocity. This is particularly useful for interpolating rotations or, more generally, directions in high-dimensional spaces.
@@ -57,6 +58,8 @@ This function essentially performs a smooth, spherical interpolation between mul
The exclusion of self-pairs in the dot product calculation indicates that the function is designed to aggregate or combine information from distinct entities within the batch.
---
The fast\_distance\_weights function calculates weights for a batch of tensors based on their pairwise distances in a normalized space.
It takes the input tensor t, boolean flags use\_softmax and use\_slerp, and an optional unconditional tensor uncond as arguments.