added support for CPU_ONLY
removed reshape() in ForwardFromTo in net.cpp