[pytes collection] Fix flax test collection (#34004)

bit weird but to filter I had to use this
This commit is contained in:
Arthur
2024-10-07 18:11:13 +02:00
committed by GitHub
parent 55be7c4c48
commit 736c7cde51
13 changed files with 13 additions and 0 deletions

View File

@@ -79,6 +79,7 @@ class FlaxBeitModelTester(unittest.TestCase):
# in BeiT, the seq length equals the number of patches + 1 (we add 1 for the [CLS] token)
num_patches = (image_size // patch_size) ** 2
self.seq_length = num_patches + 1
super().__init__()
def prepare_config_and_inputs(self):
pixel_values = floats_tensor([self.batch_size, self.num_channels, self.image_size, self.image_size])