MCPcopy Create free account
hub / github.com/pytorch/executorch / __init__

Method __init__

examples/models/stable_diffusion/model.py:54–56  ·  view source on GitHub ↗
(self, unet)

Source from the content-addressed store, hash-verified

52 """Wrapper for UNet that extracts sample tensor from output"""
53
54 def __init__(self, unet):
55 super().__init__()
56 self.unet = unet
57
58 def forward(self, latents, timestep, encoder_hidden_states):
59 # Call UNet and extract sample from the output

Callers

nothing calls this directly

Calls 1

__init__Method · 0.45

Tested by

no test coverage detected