From 904d1c468e5f5265fa1435a2250091ad55a58c4e Mon Sep 17 00:00:00 2001 From: daniel <1534513+dantp-ai@users.noreply.github.com> Date: Thu, 29 Feb 2024 23:05:50 +0100 Subject: [PATCH] Implement log backward --- minitorch/operators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/minitorch/operators.py b/minitorch/operators.py index 5ff8019..895408d 100644 --- a/minitorch/operators.py +++ b/minitorch/operators.py @@ -103,7 +103,7 @@ def exp(x: float) -> float: def log_back(x: float, d: float) -> float: r"If $f = log$ as above, compute $d \times f'(x)$" # TODO: Implement for Task 0.1. - raise NotImplementedError("Need to implement for Task 0.1") + return d / x def inv(x: float) -> float: