MCPcopy Index your code
hub / github.com/TencentARC/InstantMesh / extract_into_tensor

Function extract_into_tensor

zero123plus/model.py:37–40  ·  view source on GitHub ↗
(a, t, x_shape)

Source from the content-addressed store, hash-verified

35
36
37def extract_into_tensor(a, t, x_shape):
38 b, *_ = t.shape
39 out = a.gather(-1, t)
40 return out.reshape(b, *((1,) * (len(x_shape) - 1)))
41
42
43class MVDiffusion(pl.LightningModule):

Callers 2

get_vMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected