(self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None)
| 744 | self.resnets = nn.ModuleList(resnets) |
| 745 | |
| 746 | def forward(self, hidden_states: torch.FloatTensor, temb: Optional[torch.FloatTensor] = None) -> torch.FloatTensor: |
| 747 | hidden_states = self.resnets[0](hidden_states, temb) |
| 748 | for attn, resnet in zip(self.attentions, self.resnets[1:]): |
| 749 | if attn is not None: |
| 750 | hidden_states = attn(hidden_states, temb=temb) |
| 751 | hidden_states = resnet(hidden_states, temb) |
| 752 | |
| 753 | return hidden_states |
| 754 | |
| 755 | |
| 756 | class UNetMidBlock2DCrossAttn(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected