Closed
Description
Leaving phase and device to the Caffe singleton is awkward and spells trouble for parallelization and device abstraction.
Net should own phase and device, which are to be set at instantiation, so that nets can co-exist without the delicate coordination of phase and device for parallel execution within and across nets.
- give Phase to Net Give phase to Net #1790
- give mode / device to Net
- diffuse mode / device to Layer
At the same time phase issues like #192 #1250 #1430 should be settled at the same time. Phase has been settled in #1790.