@@ -249,7 +249,7 @@ def random_size_constraint(deps: object, r: int, d: int) -> int:
249249 case "permute_copy.default" :
250250 tensor_constraints .extend (
251251 [
252- cp .Dtype .In (lambda deps : [torch .float32 , torch .int8 , torch . uint8 ]),
252+ cp .Dtype .In (lambda deps : [torch .float32 , torch .int32 ]),
253253 cp .Rank .Le (
254254 lambda deps : 5
255255 ), # xa_nn_transpose only supports up to 5D
@@ -391,12 +391,13 @@ def random_size_constraint(deps: object, r: int, d: int) -> int:
391391 tensor_constraints .extend (
392392 [
393393 cp .Dtype .In (lambda deps : [torch .float32 , torch .int32 ]),
394+ cp .Value .Ge (lambda deps , dtype , struct : 0 ),
394395 ]
395396 )
396397 case "div.Tensor_mode" | "minimum.default" :
397398 if index == 0 :
398399 tensor_constraints = [
399- cp .Dtype .In (lambda deps : [torch .int64 , torch . int32 , torch .float32 ]),
400+ cp .Dtype .In (lambda deps : [torch .int32 , torch .float32 ]),
400401 cp .Value .Ge (lambda deps , dtype , struct : - (2 ** 4 )),
401402 cp .Value .Le (lambda deps , dtype , struct : 2 ** 4 ),
402403 cp .Rank .Ge (lambda deps : 1 ),
@@ -405,7 +406,7 @@ def random_size_constraint(deps: object, r: int, d: int) -> int:
405406 ]
406407 else :
407408 tensor_constraints = [
408- cp .Dtype .In (lambda deps : [torch .int64 , torch . int32 , torch .float32 ]),
409+ cp .Dtype .In (lambda deps : [torch .int32 , torch .float32 ]),
409410 cp .Value .Ge (lambda deps , dtype , struct : - (2 ** 4 )),
410411 cp .Value .Le (lambda deps , dtype , struct : 2 ** 4 ),
411412 cp .Value .Ne (
0 commit comments