@@ -1002,11 +1002,11 @@ def transform_params(A: R.Tensor([16, 16], "float32"), B: R.Tensor([16, 16], "fl
10021002
10031003 @I .ir_module
10041004 class Expected :
1005- @R .function
1005+ @R .function ( pure = False )
10061006 def transform_params (
10071007 A : R .Tensor ([16 , 16 ], "float32" ),
10081008 B : R .Tensor ([16 , 16 ], "float32" ),
1009- fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([])),
1009+ fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([]), purity = False ),
10101010 ):
10111011 C = R .multiply (A , R .const (2 , "float32" ))
10121012 fset_output (R .prim_value (1 ), C )
@@ -1036,11 +1036,11 @@ def transform_params(A: R.Tensor([16, 16], "float32"), B: R.Tensor([16, 16], "fl
10361036
10371037 @I .ir_module
10381038 class Expected :
1039- @R .function
1039+ @R .function ( pure = False )
10401040 def transform_params (
10411041 A : R .Tensor ([16 , 16 ], "float32" ),
10421042 B : R .Tensor ([16 , 16 ], "float32" ),
1043- fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([])),
1043+ fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([]), purity = False ),
10441044 ):
10451045 fset_output (R .prim_value (1 ), B )
10461046 C = R .multiply (A , R .const (2 , "float32" ))
@@ -1070,10 +1070,10 @@ def transform_params(A: R.Tensor([16, 16], "float32"), B: R.Tensor([16, 16], "fl
10701070
10711071 @I .ir_module
10721072 class Expected :
1073- @R .function
1073+ @R .function ( pure = False )
10741074 def transform_params (
10751075 A : R .Tensor ([16 , 16 ], "float32" ),
1076- fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([])),
1076+ fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([]), purity = False ),
10771077 B : R .Tensor ([16 , 16 ], "float32" ),
10781078 ):
10791079 R .func_attr ({"num_input" : 2 })
@@ -1105,11 +1105,11 @@ def transform_params(A: R.Tensor([16, 16], "float32"), B: R.Tensor([16, 16], "fl
11051105
11061106 @I .ir_module
11071107 class Expected :
1108- @R .function
1108+ @R .function ( pure = False )
11091109 def transform_params (
11101110 A : R .Tensor ([16 , 16 ], "float32" ),
11111111 B : R .Tensor ([16 , 16 ], "float32" ),
1112- fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([])),
1112+ fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([]), purity = False ),
11131113 ):
11141114 C = R .multiply (A , R .const (2 , "float32" ))
11151115 D = R .add (C , B )
@@ -1140,11 +1140,11 @@ def transform_params(A: R.Tensor([16, 16], "float32"), B: R.Tensor([16, 16], "fl
11401140
11411141 @I .ir_module
11421142 class Expected :
1143- @R .function
1143+ @R .function ( pure = False )
11441144 def transform_params (
11451145 A : R .Tensor ([16 , 16 ], "float32" ),
11461146 B : R .Tensor ([16 , 16 ], "float32" ),
1147- fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([])),
1147+ fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([]), purity = False ),
11481148 ):
11491149 C = R .multiply (A , R .const (2 , "float32" ))
11501150 fset_output (R .prim_value (0 ), C )
@@ -1171,11 +1171,11 @@ def transform_params(A: R.Tensor([16, 16], "float32"), B: R.Tensor([16, 16], "fl
11711171
11721172 @I .ir_module
11731173 class Expected :
1174- @R .function
1174+ @R .function ( pure = False )
11751175 def transform_params (
11761176 A : R .Tensor ([16 , 16 ], "float32" ),
11771177 B : R .Tensor ([16 , 16 ], "float32" ),
1178- fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([])),
1178+ fset_output : R .Callable ([R .Prim ("int64" ), R .Object ], R .Tuple ([]), purity = False ),
11791179 ):
11801180 C = R .multiply (A , R .const (2 , "float32" ))
11811181 D = R .add (C , B )
0 commit comments