(self, variable)
| 248 | print('self.sum_by_non_zero_weights', self.sum_by_non_zero_weights) |
| 249 | |
| 250 | def _assertNoGrad(self, variable): |
| 251 | assert not variable.requires_grad, \ |
| 252 | "nn criterions don't compute the gradient w.r.t. targets - please " \ |
| 253 | "mark these variables as volatile or not requiring gradients" |
| 254 | |
| 255 | def forward_simple(self, input, target, return_raw_cost=False): |
| 256 | self._assertNoGrad(target) |