« * K @botoscsabi.bsky.social

Botos Csabi @botoscsabi.bsky.social

2024-12-08 11:13 UTC

I think the best solution really depends on the ratios 1) max(K):T 2) N:D. since K can vary for different {n}s I would start with - find the largest K and allocate x`=torch.zeros(N, max_K+1, D) - iterate over N - create a src index [0, t_1 .. t_K] and trg [t_1, .., T-1] - x`[n, src, :]=v[n, trg, :]

A reply in a thread.

1 likes, 0 reposts, 1 replies

3 Next post4 More from @botoscsabi.bsky.socialBackBluesky home
☆ Save to home · 0 Home · Find · Games · Chat · AI · Setup