From 27962ce5f21461fdd0d6d6460718fd92ab7985ef Mon Sep 17 00:00:00 2001 From: jserbedzija Date: Wed, 11 Dec 2024 11:41:50 +0000 Subject: [PATCH] Remove operand constraints from python golden verification --- python/test_infra/ttir_builder.py | 28 ---------------------------- 1 file changed, 28 deletions(-) diff --git a/python/test_infra/ttir_builder.py b/python/test_infra/ttir_builder.py index 0921db3fca..cc6bc67d0e 100644 --- a/python/test_infra/ttir_builder.py +++ b/python/test_infra/ttir_builder.py @@ -192,33 +192,6 @@ def _override_golden(self, operand: Operand, golden: Golden) -> None: def _get_golden_tensor(self, operand: Operand) -> torch.Tensor: return self._get_golden(operand).tensor - def _get_operand_constraint_attr( - self, - num_operands: int, - operand_constraints: Optional[List[tt.OperandConstraint]] = None, - ) -> tt.ir.OperandConstraintAttr: - """ - Helper method to prepack operand constraints given as a list of enums - to a list of tt.ir.OperandConstraintAttr and wrap that list in an - tt.ir.OperandConstraintAttr. - - If no `operand_constraints` are passed, `tt.OperandConstraint.Any` will - be used for each operand. - """ - operand_constraints = ( - operand_constraints - if operand_constraints is not None - else [tt.OperandConstraint.Any for _ in range(num_operands)] - ) - - return tt.ir.OperandConstraintAttr.get( - self._ctx, - [ - tt.ir.OperandConstraintAttr.get(self._ctx, operand_constraint) - for operand_constraint in operand_constraints - ], - ) - @property def _default_dtype(self) -> Type: return F32Type.get(self._ctx) @@ -304,7 +277,6 @@ def eltwise_proxy( [self._get_type(output)], inputs, [output], - self._get_operand_constraint_attr(3), loc=loc, )