├── .gitignore ├── README.md ├── hw0 ├── Makefile ├── data │ ├── t10k-images-idx3-ubyte.gz │ ├── t10k-labels-idx1-ubyte.gz │ ├── train-images-idx3-ubyte.gz │ └── train-labels-idx1-ubyte.gz ├── readme.md ├── src │ ├── simple_ml.py │ └── simple_ml_ext.cpp └── tests │ └── test_simple_ml.py ├── hw1 ├── README.md ├── apps │ └── simple_ml.py ├── data │ ├── t10k-images-idx3-ubyte.gz │ ├── t10k-labels-idx1-ubyte.gz │ ├── train-images-idx3-ubyte.gz │ └── train-labels-idx1-ubyte.gz ├── python │ └── needle │ │ ├── __init__.py │ │ ├── autograd.py │ │ └── ops.py └── tests │ └── test_autograd_hw.py ├── hw2 ├── .gitignore ├── README.md ├── apps │ └── mlp_resnet.py ├── data │ ├── t10k-images-idx3-ubyte.gz │ ├── t10k-labels-idx1-ubyte.gz │ ├── train-images-idx3-ubyte.gz │ └── train-labels-idx1-ubyte.gz ├── figures │ ├── mlp_resnet.png │ └── residualblock.png ├── python │ └── needle │ │ ├── __init__.py │ │ ├── autograd.py │ │ ├── data.py │ │ ├── init.py │ │ ├── nn.py │ │ ├── ops.py │ │ └── optim.py └── tests │ ├── test_data.py │ └── test_nn_and_optim.py ├── hw3 ├── CMakeLists.txt ├── Makefile ├── README.md ├── python │ └── needle │ │ ├── __init__.py │ │ ├── autograd.py │ │ ├── backend_ndarray │ │ ├── __init__.py │ │ ├── ndarray.py │ │ └── ndarray_backend_numpy.py │ │ ├── backend_numpy.py │ │ ├── backend_selection.py │ │ ├── data.py │ │ ├── init.py │ │ ├── nn.py │ │ ├── ops.py │ │ └── optim.py ├── src │ ├── ndarray_backend_cpu.cc │ └── ndarray_backend_cuda.cu └── tests │ └── test_ndarray.py └── hw4 ├── README.md ├── apps ├── models.py └── simple_training.py ├── python └── needle │ ├── __init__.py │ ├── autograd.py │ ├── backend_ndarray │ ├── __init__.py │ ├── ndarray.py │ └── ndarray_backend_numpy.py │ ├── backend_numpy.py │ ├── backend_selection.py │ ├── data.py │ ├── init.py │ ├── nn.py │ ├── ops.py │ └── optim.py └── src ├── ndarray_backend_cpu.cc └── ndarray_backend_cuda.cu /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/.gitignore -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/README.md -------------------------------------------------------------------------------- /hw0/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw0/Makefile -------------------------------------------------------------------------------- /hw0/data/t10k-images-idx3-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw0/data/t10k-images-idx3-ubyte.gz -------------------------------------------------------------------------------- /hw0/data/t10k-labels-idx1-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw0/data/t10k-labels-idx1-ubyte.gz -------------------------------------------------------------------------------- /hw0/data/train-images-idx3-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw0/data/train-images-idx3-ubyte.gz -------------------------------------------------------------------------------- /hw0/data/train-labels-idx1-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw0/data/train-labels-idx1-ubyte.gz -------------------------------------------------------------------------------- /hw0/readme.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw0/readme.md -------------------------------------------------------------------------------- /hw0/src/simple_ml.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw0/src/simple_ml.py -------------------------------------------------------------------------------- /hw0/src/simple_ml_ext.cpp: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw0/src/simple_ml_ext.cpp -------------------------------------------------------------------------------- /hw0/tests/test_simple_ml.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw0/tests/test_simple_ml.py -------------------------------------------------------------------------------- /hw1/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw1/README.md -------------------------------------------------------------------------------- /hw1/apps/simple_ml.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw1/apps/simple_ml.py -------------------------------------------------------------------------------- /hw1/data/t10k-images-idx3-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw1/data/t10k-images-idx3-ubyte.gz -------------------------------------------------------------------------------- /hw1/data/t10k-labels-idx1-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw1/data/t10k-labels-idx1-ubyte.gz -------------------------------------------------------------------------------- /hw1/data/train-images-idx3-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw1/data/train-images-idx3-ubyte.gz -------------------------------------------------------------------------------- /hw1/data/train-labels-idx1-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw1/data/train-labels-idx1-ubyte.gz -------------------------------------------------------------------------------- /hw1/python/needle/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw1/python/needle/__init__.py -------------------------------------------------------------------------------- /hw1/python/needle/autograd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw1/python/needle/autograd.py -------------------------------------------------------------------------------- /hw1/python/needle/ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw1/python/needle/ops.py -------------------------------------------------------------------------------- /hw1/tests/test_autograd_hw.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw1/tests/test_autograd_hw.py -------------------------------------------------------------------------------- /hw2/.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/.gitignore -------------------------------------------------------------------------------- /hw2/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/README.md -------------------------------------------------------------------------------- /hw2/apps/mlp_resnet.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/apps/mlp_resnet.py -------------------------------------------------------------------------------- /hw2/data/t10k-images-idx3-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/data/t10k-images-idx3-ubyte.gz -------------------------------------------------------------------------------- /hw2/data/t10k-labels-idx1-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/data/t10k-labels-idx1-ubyte.gz -------------------------------------------------------------------------------- /hw2/data/train-images-idx3-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/data/train-images-idx3-ubyte.gz -------------------------------------------------------------------------------- /hw2/data/train-labels-idx1-ubyte.gz: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/data/train-labels-idx1-ubyte.gz -------------------------------------------------------------------------------- /hw2/figures/mlp_resnet.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/figures/mlp_resnet.png -------------------------------------------------------------------------------- /hw2/figures/residualblock.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/figures/residualblock.png -------------------------------------------------------------------------------- /hw2/python/needle/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/python/needle/__init__.py -------------------------------------------------------------------------------- /hw2/python/needle/autograd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/python/needle/autograd.py -------------------------------------------------------------------------------- /hw2/python/needle/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/python/needle/data.py -------------------------------------------------------------------------------- /hw2/python/needle/init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/python/needle/init.py -------------------------------------------------------------------------------- /hw2/python/needle/nn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/python/needle/nn.py -------------------------------------------------------------------------------- /hw2/python/needle/ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/python/needle/ops.py -------------------------------------------------------------------------------- /hw2/python/needle/optim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/python/needle/optim.py -------------------------------------------------------------------------------- /hw2/tests/test_data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/tests/test_data.py -------------------------------------------------------------------------------- /hw2/tests/test_nn_and_optim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw2/tests/test_nn_and_optim.py -------------------------------------------------------------------------------- /hw3/CMakeLists.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/CMakeLists.txt -------------------------------------------------------------------------------- /hw3/Makefile: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/Makefile -------------------------------------------------------------------------------- /hw3/README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/README.md -------------------------------------------------------------------------------- /hw3/python/needle/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/python/needle/__init__.py -------------------------------------------------------------------------------- /hw3/python/needle/autograd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/python/needle/autograd.py -------------------------------------------------------------------------------- /hw3/python/needle/backend_ndarray/__init__.py: -------------------------------------------------------------------------------- 1 | from .ndarray import * 2 | -------------------------------------------------------------------------------- /hw3/python/needle/backend_ndarray/ndarray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/python/needle/backend_ndarray/ndarray.py -------------------------------------------------------------------------------- /hw3/python/needle/backend_ndarray/ndarray_backend_numpy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/python/needle/backend_ndarray/ndarray_backend_numpy.py -------------------------------------------------------------------------------- /hw3/python/needle/backend_numpy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/python/needle/backend_numpy.py -------------------------------------------------------------------------------- /hw3/python/needle/backend_selection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/python/needle/backend_selection.py -------------------------------------------------------------------------------- /hw3/python/needle/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/python/needle/data.py -------------------------------------------------------------------------------- /hw3/python/needle/init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/python/needle/init.py -------------------------------------------------------------------------------- /hw3/python/needle/nn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/python/needle/nn.py -------------------------------------------------------------------------------- /hw3/python/needle/ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/python/needle/ops.py -------------------------------------------------------------------------------- /hw3/python/needle/optim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/python/needle/optim.py -------------------------------------------------------------------------------- /hw3/src/ndarray_backend_cpu.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/src/ndarray_backend_cpu.cc -------------------------------------------------------------------------------- /hw3/src/ndarray_backend_cuda.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/src/ndarray_backend_cuda.cu -------------------------------------------------------------------------------- /hw3/tests/test_ndarray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw3/tests/test_ndarray.py -------------------------------------------------------------------------------- /hw4/README.md: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /hw4/apps/models.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/apps/models.py -------------------------------------------------------------------------------- /hw4/apps/simple_training.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/apps/simple_training.py -------------------------------------------------------------------------------- /hw4/python/needle/__init__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/python/needle/__init__.py -------------------------------------------------------------------------------- /hw4/python/needle/autograd.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/python/needle/autograd.py -------------------------------------------------------------------------------- /hw4/python/needle/backend_ndarray/__init__.py: -------------------------------------------------------------------------------- 1 | from .ndarray import * 2 | -------------------------------------------------------------------------------- /hw4/python/needle/backend_ndarray/ndarray.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/python/needle/backend_ndarray/ndarray.py -------------------------------------------------------------------------------- /hw4/python/needle/backend_ndarray/ndarray_backend_numpy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/python/needle/backend_ndarray/ndarray_backend_numpy.py -------------------------------------------------------------------------------- /hw4/python/needle/backend_numpy.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/python/needle/backend_numpy.py -------------------------------------------------------------------------------- /hw4/python/needle/backend_selection.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/python/needle/backend_selection.py -------------------------------------------------------------------------------- /hw4/python/needle/data.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/python/needle/data.py -------------------------------------------------------------------------------- /hw4/python/needle/init.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/python/needle/init.py -------------------------------------------------------------------------------- /hw4/python/needle/nn.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/python/needle/nn.py -------------------------------------------------------------------------------- /hw4/python/needle/ops.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/python/needle/ops.py -------------------------------------------------------------------------------- /hw4/python/needle/optim.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/python/needle/optim.py -------------------------------------------------------------------------------- /hw4/src/ndarray_backend_cpu.cc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/src/ndarray_backend_cpu.cc -------------------------------------------------------------------------------- /hw4/src/ndarray_backend_cuda.cu: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/YuanchengFang/dlsys_solution/HEAD/hw4/src/ndarray_backend_cuda.cu --------------------------------------------------------------------------------