In caffe, if I make my own variable associated with a layer and I modify this variable during training iterations, the test phase does not know about the modifications to that variable, it seems to initialize it for itself. the training testing phases share weights but nothing else. How do I share other variables between the training and testing phases. Thanks.
eg: say I declare in inner_product_layer.hpp,
int dog = 5;
and in Backward_gpu() I modify,
dog = 6;
the testing phase thinks dog=5. I want the testing phase to know that dog is now 6.