Skip to content

Instantly share code, notes, and snippets.

View Answeror's full-sized avatar

Cosmo Du Answeror

View GitHub Profile
@Answeror
Answeror / main.json
Created October 6, 2014 12:54
torabot lang test
{
"string": "{{ string }}",
"int": {{ int }}
}
@Answeror
Answeror / accumulators.py
Created January 10, 2015 12:52
Statistical accumulator in Python (http://stackoverflow.com/q/3774315/238472)
from __future__ import absolute_import
import numpy as np
class Accumulators(object):
_accumulator_library = {}
def __init__(self):
self.accumulator_library = {}
@Answeror
Answeror / Dockerfile
Last active January 7, 2022 06:07
Exactly reproduce 56 layers ResNet on CIFAR10 in mxnet
FROM dmlc/mxnet:cuda
MAINTAINER answeror <[email protected]>
ENV LD_LIBRARY_PATH /usr/local/cuda/lib64:/usr/local/nvidia/lib:/usr/local/nvidia/lib64
RUN cd /mxnet && git pull origin master && git submodule update
ADD src/io/image_aug_default.cc /mxnet/src/io/image_aug_default.cc
RUN cd /mxnet && make -j8 ADD_LDFLAGS=-L/usr/local/cuda/lib64/stubs
ADD example/image-classification/symbol_resnet.py /mxnet/example/image-classification/symbol_resnet.py
ADD example/image-classification/train_cifar10_resnet.py /mxnet/example/image-classification/train_cifar10_resnet.py