MCPcopy Create free account
hub / github.com/TeleHuman/TextOp / _lerp

Method _lerp

TextOpTracker/scripts/csv_to_npz.py:147–149  ·  view source on GitHub ↗

Linear interpolation between two tensors.

(self, a: torch.Tensor, b: torch.Tensor, blend: torch.Tensor)

Source from the content-addressed store, hash-verified

145 )
146
147 def _lerp(self, a: torch.Tensor, b: torch.Tensor, blend: torch.Tensor) -> torch.Tensor:
148 """Linear interpolation between two tensors."""
149 return a * (1 - blend) + b * blend
150
151 def _slerp(self, a: torch.Tensor, b: torch.Tensor, blend: torch.Tensor) -> torch.Tensor:
152 """Spherical linear interpolation between two quaternions."""

Callers 1

_interpolate_motionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected