change constraints check to not constrain channel dimension