def init_caffemodel(self,caffe_cmd_path='caffe'):
        """
        :param caffe_cmd_path: The shell command of caffe, normally at <path-to-caffe>/build/tools/caffe
        """
        s=pb.SolverParameter()
        s.train_net=self.file_name
        s.max_iter=0
        s.base_lr=1
        s.solver_mode = pb.SolverParameter.CPU
        s.snapshot_prefix='./nn'
        with open('/tmp/nn_tools_solver.prototxt','w') as f:
            f.write(str(s))
        import os
        os.system('%s train --solver /tmp/nn_tools_solver.prototxt'%caffe_cmd_path)

        :param caffe_cmd_path: The shell command of caffe, normally at <path-to-caffe>/build/tools/caffe
        
tools/deploy/Caffe/caffe_net.py