MCPcopy Create free account
hub / github.com/FunAudioLLM/ThinkSound / timestep_embedding

Method timestep_embedding

ThinkSound/models/embeddings.py:67–80  ·  view source on GitHub ↗

Create sinusoidal timestep embeddings. :param t: a 1-D Tensor of N indices, one per batch element. These may be fractional. :param dim: the dimension of the output. :param max_period: controls the minimum frequency of the embeddings.

(self, t)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

forwardMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected