fix PR

the unbroadcast(shape_padleft(x)) might not be of the same type as x,
specifically when x is CudaNdarrayTyepe,  unbroadcast(shape_padleft(x))
is a TensorType.