You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for t0 in reversed(self.deepwalk()):
if t0.grad is None: raise RuntimeError(f"tensor {t0} has no grad")
This makes it less easy to play with stuff (running WIP model, having unused Tensor lingering as part of model).
Can we make it less strict about this validation, at least in some sort of debug mode (DEBUG>3)? Can we skip those tensors during backward, instead of raise?
The text was updated successfully, but these errors were encountered:
It seems tinygrad is being quite strict in ensuring a Tensor has grad (used in forward). https://github.com/tinygrad/tinygrad/blob/master/tinygrad/tensor.py#L652
This makes it less easy to play with stuff (running WIP model, having unused Tensor lingering as part of model).
Can we make it less strict about this validation, at least in some sort of debug mode (DEBUG>3)? Can we skip those tensors during backward, instead of
raise
?The text was updated successfully, but these errors were encountered: