@@ -388,6 +388,9 @@ def __init__(
388388 self .nodes_with_inner_function = []
389389 self .output_keys = output_keys
390390
391+ if self .output_keys is not None :
392+ warnings .warn ("output_keys is deprecated." , FutureWarning )
393+
391394 assert len (self .output_storage ) == len (self .maker .fgraph .outputs )
392395
393396 # See if we have any mutable / borrow inputs
@@ -810,20 +813,15 @@ def __call__(self, *args, **kwargs):
810813 if ``output_subset`` is not passed.
811814 """
812815
813- def restore_defaults ():
814- for i , (required , refeed , value ) in enumerate (self .defaults ):
815- if refeed :
816- if isinstance (value , Container ):
817- value = value .storage [0 ]
818- self [i ] = value
819-
820816 profile = self .profile
821817 if profile :
822818 t0 = time .perf_counter ()
823819
824820 output_subset = kwargs .pop ("output_subset" , None )
825- if output_subset is not None and self .output_keys is not None :
826- output_subset = [self .output_keys .index (key ) for key in output_subset ]
821+ if output_subset is not None :
822+ warnings .warn ("output_subset is deprecated." , FutureWarning )
823+ if self .output_keys is not None :
824+ output_subset = [self .output_keys .index (key ) for key in output_subset ]
827825
828826 # Reinitialize each container's 'provided' counter
829827 if self .trust_input :
@@ -1565,6 +1563,8 @@ def __init__(
15651563 )
15661564 for i in self .inputs
15671565 ]
1566+ if any (self .refeed ):
1567+ warnings .warn ("Inputs with default values are deprecated." , FutureWarning )
15681568
15691569 def create (self , input_storage = None , storage_map = None ):
15701570 """
0 commit comments