From 1b49a424012af271c100a15d64c9ed0dc3dce7cb Mon Sep 17 00:00:00 2001 From: Extraltodeus Date: Sun, 27 Apr 2025 04:18:37 +0200 Subject: [PATCH] Update sampler_explaination.md --- sampler_explaination.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sampler_explaination.md b/sampler_explaination.md index f720ee1..87e4e9f 100644 --- a/sampler_explaination.md +++ b/sampler_explaination.md @@ -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.