MCPcopy Create free account
hub / github.com/tinygrad/tinygrad / Step

Class Step

examples/webgpu/stable_diffusion/compile.py:90–93  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

88 load_state_dict(model, torch_load(fetch('https://huggingface.co/CompVis/stable-diffusion-v-1-4-original/resolve/main/sd-v1-4.ckpt', 'sd-v1-4.ckpt'))['state_dict'], strict=False)
89
90 class Step(NamedTuple):
91 name: str = ""
92 input: List[Tensor] = []
93 forward: Any = None
94
95 sub_steps = [
96 Step(name = "textModel", input = [Tensor.randint(1, 77, low=0, high=49408, dtype=dtypes.int32)], forward = model.cond_stage_model.transformer.text_model),

Callers 1

compile.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…