add setup.py and change imports to relative
MODIFY
.gitignore
.gitignore
__pycache__
notebooks
.*.swp
+build
+dist
+*.egg-info

ADD
setup.py
+#!/usr/bin/env python3
+
+import os
+from setuptools import setup
+
+directory = os.path.abspath(os.path.dirname(__file__))
+with open(os.path.join(directory, 'README.md'), encoding='utf-8') as f:
+ long_description = f.read()
+
+setup(name='tinygrad',
+ version='1.0.0',
+ description='You like pytorch? You like micrograd? You love tinygrad! heart',
+ author='George Hotz',
+ license='MIT',
+ long_description=long_description,
+ long_description_content_type='text/markdown',
+ packages = ['tinygrad'],
+ classifiers=[
+ "Programming Language :: Python :: 3",
+ "License :: OSI Approved :: MIT License"
+ ],
+ install_requires=['numpy', 'requests'],
+ python_requires='>=3.6',
+ include_package_data=True)

MODIFY
tinygrad/__init__.py
tinygrad/__init__.py
+from .optim import *
+from .ops import *
+from .tensor import *
+from .utils import *

MODIFY
tinygrad/gradcheck.py
tinygrad/gradcheck.py
import numpy as np
-from tinygrad.utils import mask_like
-from tinygrad.tensor import Tensor
+from .utils import mask_like
+from .tensor import Tensor
def jacobian(func, input):
output = func(input)

MODIFY
tinygrad/ops.py
tinygrad/ops.py
import numpy as np
-from tinygrad.tensor import Function, register
+from .tensor import Function, register
class Reshape(Function):
@staticmethod

add setup.py and change imports to relative