@@ -388,6 +388,9 @@ def __init__(
388
388
self .nodes_with_inner_function = []
389
389
self .output_keys = output_keys
390
390
391
+ if self .output_keys is not None :
392
+ warnings .warn ("output_keys is deprecated." , FutureWarning )
393
+
391
394
assert len (self .output_storage ) == len (self .maker .fgraph .outputs )
392
395
393
396
# See if we have any mutable / borrow inputs
@@ -810,20 +813,15 @@ def __call__(self, *args, **kwargs):
810
813
if ``output_subset`` is not passed.
811
814
"""
812
815
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
-
820
816
profile = self .profile
821
817
if profile :
822
818
t0 = time .perf_counter ()
823
819
824
820
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 ]
827
825
828
826
# Reinitialize each container's 'provided' counter
829
827
if self .trust_input :
@@ -1565,6 +1563,8 @@ def __init__(
1565
1563
)
1566
1564
for i in self .inputs
1567
1565
]
1566
+ if any (self .refeed ):
1567
+ warnings .warn ("Inputs with default values are deprecated." , FutureWarning )
1568
1568
1569
1569
def create (self , input_storage = None , storage_map = None ):
1570
1570
"""
0 commit comments