assertlen(input_shapes)==3,"not valid input shape for axpy layer"assertlen(input_shapes[0])==len(input_shapes[1]),'should have same dims'output_shape=input_shapes[1]assert(input_shapes[2]==output_shape),\"shape not consistent for axpy[%s <--> %s]" \%(str(output_shape),str(input_shapes[2]))return[output_shape]defaxpy_layer(inputs,input_shape=None,name=None):alpha=inputs[0]x=inputs[1]y=inputs[2]out=fluid.layers.elementwise_mul(x,alpha,axis=0)out=fluid.layers.elementwise_add(out,y,name=name)