fixed net reset bug with segfault
Merge branch 'weighted_eucloss' of github.com:cbfinn/caffe into weighted_eucloss