Skip to content

Commit

Permalink
Add GPU support
Browse files Browse the repository at this point in the history
  • Loading branch information
parsiad committed Aug 29, 2024
1 parent 8c63920 commit 389e5f7
Show file tree
Hide file tree
Showing 15 changed files with 308 additions and 161 deletions.
39 changes: 25 additions & 14 deletions examples/mnist.ipynb

Large diffs are not rendered by default.

7 changes: 4 additions & 3 deletions examples/n-gram.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,9 @@
"outputs": [],
"source": [
"import micrograd_pp as mpp\n",
"import numpy as np\n",
"import numpy.typing as npt"
"import numpy.typing as npt\n",
"\n",
"np = mpp.numpy # `import numpy as np` will not work when using GPU"
]
},
{
Expand Down Expand Up @@ -324,7 +325,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.12.4"
"version": "3.12.5"
}
},
"nbformat": 4,
Expand Down
Loading

0 comments on commit 389e5f7

Please sign in to comment.