support ReduceLayer without reshape layer.