Example #1
0
 def _check_no_forwarding(self):
     """ Ensures that no optimization state is attached to relevant operations
     before importing anything. """
     # Some of these may be redunant
     check_no_forwarding([
         self.end_args, self.next_iteration_args, self.renamed_inputargs,
         self.short_inputargs,
         self.exported_infos.keys()
     ])
     for box in self.short_boxes:
         box._check_no_forwarding()
Example #2
0
 def _check_no_forwarding(self):
     """ Ensures that no optimization state is attached to relevant operations
     before importing anything. """
     # Some of these may be redunant
     check_no_forwarding([
         self.end_args,
         self.next_iteration_args,
         self.renamed_inputargs,
         self.short_inputargs,
         self.exported_infos.keys()])
     for box in self.short_boxes:
         box._check_no_forwarding()
Example #3
0
 def _check_no_forwarding(self, lsts, check_newops=True):
     check_no_forwarding(lsts)
     if check_newops:
         assert not self.optimizer._newoperations
Example #4
0
 def _check_no_forwarding(self, lsts, check_newops=True):
     check_no_forwarding(lsts)
     if check_newops:
         assert not self.optimizer._newoperations