File tree 2 files changed +4
-0
lines changed 2 files changed +4
-0
lines changed Original file line number Diff line number Diff line change 30
30
TORCH_VERSION_AT_LEAST_2_3 ,
31
31
TORCH_VERSION_AT_LEAST_2_4 ,
32
32
TORCH_VERSION_AT_LEAST_2_5 ,
33
+ TORCH_VERSION_AT_LEAST_2_6 ,
33
34
is_fbcode ,
34
35
)
35
36
@@ -201,6 +202,7 @@ def test_choose_qparams_group_sym_no_clipping_err(self):
201
202
self .assertTrue (torch .equal (scale , scale_ref ))
202
203
self .assertTrue (torch .equal (zero_point , zp_ref ))
203
204
@unittest .skipIf (not TORCH_VERSION_AT_LEAST_2_3 , "skipping when torch version is 2.3 or lower" )
205
+ @unittest .skipIf (TORCH_VERSION_AT_LEAST_2_6 , "skipping when torch version is 2.6 or higher" )
204
206
@unittest .skipIf (is_fbcode (), "broken in fbcode" )
205
207
def test_choose_qparams_token_asym (self ):
206
208
input = torch .randn (10 , 10 )
Original file line number Diff line number Diff line change 26
26
"TORCH_VERSION_AT_LEAST_2_3" ,
27
27
"TORCH_VERSION_AT_LEAST_2_4" ,
28
28
"TORCH_VERSION_AT_LEAST_2_5" ,
29
+ "TORCH_VERSION_AT_LEAST_2_6" ,
29
30
30
31
# Needs to be deprecated in the future
31
32
"TORCH_VERSION_AFTER_2_2" ,
@@ -317,6 +318,7 @@ def is_fbcode():
317
318
def torch_version_at_least (min_version ):
318
319
return is_fbcode () or compare_versions (torch .__version__ , min_version ) >= 0
319
320
321
+ TORCH_VERSION_AT_LEAST_2_6 = torch_version_at_least ("2.6.0" )
320
322
TORCH_VERSION_AT_LEAST_2_5 = torch_version_at_least ("2.5.0" )
321
323
TORCH_VERSION_AT_LEAST_2_4 = torch_version_at_least ("2.4.0" )
322
324
TORCH_VERSION_AT_LEAST_2_3 = torch_version_at_least ("2.3.0" )
You can’t perform that action at this time.
0 commit comments