src/transformers/models/perceiver/modeling_perceiver.py/PerceiverFourierPositionEncoding/num_dimensions
class PerceiverFourierPositionEncoding:    def num_dimensions(self) -> int:
        return len(self.max_resolution)