forked from hide27k/uwnet
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit 2800cac
Showing
78 changed files
with
13,337 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
*.o | ||
*.a | ||
*.so | ||
*.dSYM | ||
*.csv | ||
*.out | ||
*.pyc | ||
.fuse* | ||
libuwnet* | ||
mnist* | ||
cifar* | ||
uwnet | ||
|
||
# OS Generated # | ||
.DS_Store* | ||
ehthumbs.db | ||
Icon? | ||
Thumbs.db | ||
*.swp |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
OPENCV=0 | ||
OPENMP=0 | ||
DEBUG=0 | ||
|
||
OBJ=main.o image.o args.o test.o matrix.o list.o data.o classifier.o net.o connected_layer.o activation_layer.o convolutional_layer.o maxpool_layer.o | ||
EXOBJ=test.o | ||
|
||
VPATH=./src/:./ | ||
EXEC=uwnet | ||
SLIB=lib${EXEC}.so | ||
ALIB=lib${EXEC}.a | ||
OBJDIR=./obj/ | ||
|
||
CC=gcc | ||
AR=ar | ||
ARFLAGS=rcs | ||
OPTS=-Ofast | ||
LDFLAGS= -lm -pthread | ||
COMMON= -Iinclude/ -Isrc/ | ||
CFLAGS=-Wall -Wno-unknown-pragmas -Wfatal-errors -fPIC | ||
|
||
ifeq ($(OPENMP), 1) | ||
CFLAGS+= -fopenmp | ||
endif | ||
|
||
ifeq ($(DEBUG), 1) | ||
OPTS=-O0 -g | ||
COMMON= -Iinclude/ -Isrc/ | ||
endif | ||
|
||
CFLAGS+=$(OPTS) | ||
|
||
ifeq ($(OPENCV), 1) | ||
COMMON+= -DOPENCV | ||
CFLAGS+= -DOPENCV | ||
LDFLAGS+= `pkg-config --libs opencv` | ||
COMMON+= `pkg-config --cflags opencv` | ||
endif | ||
|
||
EXOBJS = $(addprefix $(OBJDIR), $(EXOBJ)) | ||
OBJS = $(addprefix $(OBJDIR), $(OBJ)) | ||
DEPS = $(wildcard src/*.h) Makefile | ||
|
||
all: obj $(SLIB) $(ALIB) $(EXEC) | ||
|
||
$(EXEC): $(EXOBJS) $(OBJS) | ||
$(CC) $(COMMON) $(CFLAGS) $^ -o $@ $(LDFLAGS) | ||
|
||
$(ALIB): $(OBJS) | ||
$(AR) $(ARFLAGS) $@ $^ | ||
|
||
$(SLIB): $(OBJS) | ||
$(CC) $(CFLAGS) -shared $^ -o $@ $(LDFLAGS) | ||
|
||
$(OBJDIR)%.o: %.c $(DEPS) | ||
$(CC) $(COMMON) $(CFLAGS) -c $< -o $@ | ||
|
||
obj: | ||
mkdir -p obj | ||
|
||
.PHONY: clean | ||
|
||
clean: | ||
rm -rf $(OBJS) $(SLIB) $(ALIB) $(EXEC) $(EXOBJS) $(OBJDIR)/* | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#UW Net# | ||
|
||
This is a work in progress..... | ||
|
||
but I'm working on it! | ||
|
||
[Homework 0](./hw0.md) | ||
[Homework 1](./hw1.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
rm -rf submit/ | ||
mkdir -p submit | ||
|
||
prepare () { | ||
if [[ $(git diff origin -- $1 | wc -c) -eq 0 ]]; then | ||
echo "WARNING: $1 is unchanged according to git." | ||
fi | ||
cp $1 submit/ | ||
} | ||
|
||
echo "Creating tarball..." | ||
prepare src/matrix.c | ||
prepare src/activations.c | ||
prepare src/connected_layer.c | ||
prepare tryhw0.py | ||
prepare hw0.ipynb | ||
|
||
tar cvzf submit.tar.gz submit | ||
rm -rf submit/ | ||
echo "Done. Please upload submit.tar.gz to Canvas." | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
rm -rf submit/ | ||
mkdir -p submit | ||
|
||
prepare () { | ||
if [[ $(git diff origin -- $1 | wc -c) -eq 0 ]]; then | ||
echo "WARNING: $1 is unchanged according to git." | ||
fi | ||
cp $1 submit/ | ||
} | ||
|
||
echo "Creating tarball..." | ||
prepare src/convolutional_layer.c | ||
prepare src/maxpool_layer.c | ||
prepare tryhw1.py | ||
prepare hw1.ipynb | ||
|
||
tar cvzf submit.tar.gz submit | ||
rm -rf submit/ | ||
echo "Done. Please upload submit.tar.gz to Canvas." | ||
|
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.