Remove debug print
This commit is contained in:
parent
0ad8ac2fcd
commit
f85b9670b2
|
@ -78,7 +78,6 @@ class Tensor:
|
||||||
|
|
||||||
# TODO Compute gradients only for tensors that need it.
|
# TODO Compute gradients only for tensors that need it.
|
||||||
def _backprop(self, upstream):
|
def _backprop(self, upstream):
|
||||||
print(upstream)
|
|
||||||
# Backprop through the tensor iff it has any parents.
|
# Backprop through the tensor iff it has any parents.
|
||||||
if self._parents is not None:
|
if self._parents is not None:
|
||||||
for node, grad in zip(self._parents, self._back(upstream)):
|
for node, grad in zip(self._parents, self._back(upstream)):
|
||||||
|
|
Loading…
Reference in a new issue