Remove fn check for ipu output (#7915)

This commit is contained in:
Sean Naren 2021-06-10 12:35:32 +01:00 committed by GitHub
parent 580a3b5e32
commit 07b69231ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -264,8 +264,6 @@ class ResultCollection(dict):
if loss is not None:
if not isinstance(loss, torch.Tensor):
raise ValueError(f"`Result.minimize` must be a `torch.Tensor`, found: {loss}")
if loss.grad_fn is None:
raise RuntimeError("`Result.minimize` must have a `grad_fn`")
self._minimize = loss
@property