MCPcopy Create free account
hub / github.com/aim-uofa/Framer / forward

Method forward

models_diffusers/unet_3d_blocks.py:1803–1819  ·  view source on GitHub ↗
(
        self,
        hidden_states: torch.FloatTensor,
        image_only_indicator: torch.FloatTensor,
    )

Source from the content-addressed store, hash-verified

1801 self.resnets = nn.ModuleList(resnets)
1802
1803 def forward(
1804 self,
1805 hidden_states: torch.FloatTensor,
1806 image_only_indicator: torch.FloatTensor,
1807 ):
1808 hidden_states = self.resnets[0](
1809 hidden_states,
1810 image_only_indicator=image_only_indicator,
1811 )
1812 for resnet, attn in zip(self.resnets[1:], self.attentions):
1813 hidden_states = attn(hidden_states)
1814 hidden_states = resnet(
1815 hidden_states,
1816 image_only_indicator=image_only_indicator,
1817 )
1818
1819 return hidden_states
1820
1821
1822class UpBlockTemporalDecoder(nn.Module):

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected