public cnn_layer(char type,String... pairs){
        this.type = type;
        for(int i = 0; i < pairs.length; i+=2){
            int value = Integer.parseInt(pairs[i+1]);
            if(pairs[i].equals("outputmaps")){
                this.outputmaps = value;
            }else if(pairs[i].equals("kernelsize")){
                this.kernelsize = value;
            }else if(pairs[i].equals("scale")){
                this.scale = value;
            }
        }
    }