Skip to content

Commit

Permalink
full minitorch
Browse files Browse the repository at this point in the history
  • Loading branch information
srush committed Dec 21, 2022
1 parent 71d7ba1 commit 477b0b1
Show file tree
Hide file tree
Showing 63 changed files with 3,027 additions and 2,426 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,6 @@ dmypy.json

# Pyre type checker
.pyre/
*.\#*
*.\#*
data/
pyodide
39 changes: 0 additions & 39 deletions README.md

This file was deleted.

33 changes: 16 additions & 17 deletions minitorch/__init__.py
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
from .datasets import datasets # noqa: F401,F403
from .testing import MathTest, MathTestVariable # noqa: F401,F403

# MODULE 0
from .module import * # noqa: F401,F403


# MODULE 1
from .scalar import * # noqa: F401,F403
from .autodiff import * # noqa: F401,F403
import minitorch.scalar_functions as scalar_functions # noqa: F401,F403

# MODULE 2
from .tensor import * # noqa: F401,F403
from .tensor_data import * # noqa: F401,F403
from .tensor_functions import * # noqa: F401,F403
from .tensor_ops import * # noqa: F401,F403
from .autodiff import * # noqa: F401,F403
from .cuda_ops import * # noqa: F401,F403
from .datasets import datasets # noqa: F401,F403
from .fast_conv import * # noqa: F401,F403

# MODULE 3
from .fast_ops import * # noqa: F401,F403
from .cuda_ops import * # noqa: F401,F403
from .module import * # noqa: F401,F403

# MODULE 4
from .nn import * # noqa: F401,F403
from .fast_conv import * # noqa: F401,F403

from .optim import * # noqa: F401,F403
from .scalar import Scalar, ScalarHistory, derivative_check # noqa: F401,F403
from .scalar_functions import ScalarFunction # noqa: F401,F403

# MODULE 2
from .tensor import * # noqa: F401,F403
from .tensor_data import * # noqa: F401,F403
from .tensor_functions import * # noqa: F401,F403
from .tensor_ops import * # noqa: F401,F403
from .testing import MathTest, MathTestVariable # type: ignore # noqa: F401,F403

version = "0.2"
version = "0.4"
Loading

0 comments on commit 477b0b1

Please sign in to comment.