MCPcopy Create free account
hub / github.com/openai/shap-e / __init__

Method __init__

shap_e/diffusion/gaussian_diffusion.py:1047–1050  ·  view source on GitHub ↗
(self, model, timestep_map, original_num_steps)

Source from the content-addressed store, hash-verified

1045
1046class _WrappedModel:
1047 def __init__(self, model, timestep_map, original_num_steps):
1048 self.model = model
1049 self.timestep_map = timestep_map
1050 self.original_num_steps = original_num_steps
1051
1052 def __call__(self, x, ts, **kwargs):
1053 map_tensor = th.tensor(self.timestep_map, device=ts.device, dtype=ts.dtype)

Callers 1

__init__Method · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected