transform cudnnLayer into Convlayer