Skip to content

Commit

Permalink
Implement log backward
Browse files Browse the repository at this point in the history
  • Loading branch information
dantp-ai committed Feb 29, 2024
1 parent 73d9da5 commit 904d1c4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion minitorch/operators.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 904d1c4

Please sign in to comment.