[pytes collection] Fix flax test collection (#34004)
bit weird but to filter I had to use this
This commit is contained in:
@@ -72,6 +72,7 @@ class FlaxViTModelTester(unittest.TestCase):
|
||||
# in ViT, 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])
|
||||
|
||||
Reference in New Issue
Block a user