mirror of https://github.com/glouw/tinn
Add Docker
This commit is contained in:
parent
e366d4d1fc
commit
1d16fa06c3
|
@ -0,0 +1,15 @@
|
|||
FROM gcc AS build
|
||||
|
||||
COPY . /src
|
||||
|
||||
WORKDIR /src
|
||||
|
||||
RUN make LDFLAGS="-lm -static"
|
||||
|
||||
FROM scratch
|
||||
|
||||
COPY --from=build /src/test ./
|
||||
|
||||
WORKDIR /data
|
||||
|
||||
CMD ["/test"]
|
|
@ -8,6 +8,11 @@ For a demo on how to learn hand written digits, get some training data:
|
|||
|
||||
make; ./test
|
||||
|
||||
If you're on `docker` it's:
|
||||
|
||||
docker build -t tinn .
|
||||
docker run --user $(id -u) --rm -v ${PWD}:/data tinn
|
||||
|
||||
The training data consists of hand written digits written both slowly and quickly.
|
||||
Each line in the data set corresponds to one handwritten digit. Each digit is 16x16 pixels in size
|
||||
giving 256 inputs to the neural network.
|
||||
|
|
Loading…
Reference in New Issue