Defines the computation performed in every forward propagation. Should be overridden by all subclasses. Args: *input: the input training data for the model Returns: out: the outputs of the forward propagation.
(self, *input)
| 184 | self.sequential = sequential |
| 185 | |
| 186 | def forward(self, *input): |
| 187 | """Defines the computation performed in every forward propagation. |
| 188 | |
| 189 | Should be overridden by all subclasses. |
| 190 | |
| 191 | Args: |
| 192 | *input: the input training data for the model |
| 193 | |
| 194 | Returns: |
| 195 | out: the outputs of the forward propagation. |
| 196 | """ |
| 197 | raise NotImplementedError |
| 198 | |
| 199 | def train_one_batch(self, *input, **kwargs): |
| 200 | """Defines the computation performed in every training iteration |