Update layer_factory.cpp
Merge pull request #1161 from jjkjkj/dev-threshold-fix

Fix Threshold layer
Fixing my own s**t: now we have a running factory.
linting
more docs
Pre-lunch fun: add a dynamic library guard test.
Add back static library. Using -Wl,--whole-archive will allow us to preserve all symbols.
Mute factory registration message
lint
cmake.
cmake: static linking for python and tool binaries
consolidate duplicate code
add long-ignored threshold layer
Merge branch 'factory' of https://github.com/Yangqing/caffe into factory

Conflicts:
	src/caffe/layer_factory.cpp