Remove warning caused by AdvancedSubtensor.infer_shape.

This just remove warning and to not implement the case where the
warning was generated.