MCPcopy Create free account
hub / github.com/NVlabs/DiffPure / _extract_into_tensor

Function _extract_into_tensor

runners/diffpure_ode.py:24–40  ·  view source on GitHub ↗

Extract values from a 1-D numpy array for a batch of indices. :param arr: the 1-D numpy array or a func. :param timesteps: a tensor of indices into the array to extract. :param broadcast_shape: a larger shape of K dimensions with the batch dimension equa

(arr_or_func, timesteps, broadcast_shape)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

ode_fnMethod · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected