handle general shape type when calculating output shape
handle general shape type when calculating output shape

xtensor-stack/xtensor-fftw,egpbos/xtensor-fftw,xtensor-stack/xtensor-fftw,egpbos/xtensor-fftw