@@ -827,7 +827,7 @@ def test_static_caching(executor, device: str, dtype: dtypes.dtype):
827827 def foo (a , b ):
828828 return a + b
829829
830- cfoo = thunder .jit (foo , cache_mode = "constant values" )
830+ cfoo = thunder .jit (foo , cache = "constant values" )
831831
832832 assert cache_option (cfoo ) == thunder .CACHE_OPTIONS .CONSTANT_VALUES
833833
@@ -894,7 +894,7 @@ def foo(a, b):
894894 def bar (a , b ):
895895 return a , b
896896
897- cbar = thunder .jit (bar , cache_mode = "constant values" )
897+ cbar = thunder .jit (bar , cache = "constant values" )
898898
899899 astr = "a"
900900 bstr = "b"
@@ -928,7 +928,7 @@ def bar(a, b):
928928
929929 # Module tests
930930 m = torch .nn .Linear (5 , 5 , device = device , dtype = torch_dtype )
931- cm = thunder .jit (m , cache_mode = "constant values" )
931+ cm = thunder .jit (m , cache = "constant values" )
932932
933933 inp = make_tensor ((5 , 5 ), device = device , dtype = torch_dtype )
934934
@@ -979,7 +979,7 @@ def caz(tup):
979979 accum += x
980980 return accum
981981
982- ccaz = thunder .jit (caz , cache_mode = "constant values" )
982+ ccaz = thunder .jit (caz , cache = "constant values" )
983983
984984 inp0 = [5 , 3 , 7 ]
985985 thunder_result = ccaz (inp0 )
@@ -1026,7 +1026,7 @@ def caz(tup):
10261026 def daz (* , a , b ):
10271027 return a + b
10281028
1029- cdaz = thunder .jit (daz , cache_mode = "constant values" )
1029+ cdaz = thunder .jit (daz , cache = "constant values" )
10301030
10311031 inp0 = {"a" : a , "b" : b }
10321032 thunder_result = cdaz (** inp0 )
0 commit comments