(
self,
hidden_states: torch.FloatTensor,
image_only_indicator: torch.FloatTensor,
)
| 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 | |
| 1822 | class UpBlockTemporalDecoder(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected