(self, hidden_states)
| 103 | raise NotImplementedError |
| 104 | |
| 105 | def forward(self, hidden_states): |
| 106 | assert hidden_states.shape[1] == self.channels |
| 107 | if self.use_conv and self.padding == 0: |
| 108 | raise NotImplementedError |
| 109 | |
| 110 | assert hidden_states.shape[1] == self.channels |
| 111 | hidden_states = self.conv(hidden_states) |
| 112 | |
| 113 | return hidden_states |
| 114 | |
| 115 | |
| 116 | class ResnetBlock3D(nn.Module): |
nothing calls this directly
no outgoing calls
no test coverage detected