1 from __future__
import absolute_import
2 from __future__
import division
3 from __future__
import print_function
4 from __future__
import unicode_literals
12 An abstraction class for supporting modifying a generated net. 13 Inherited classes should implement the modify_net method where 14 related operators are added to the net. 17 modifier = SomeNetModifier(opts) 25 def modify_net(self, net, init_net=None, grad_map=None, blob_to_device=None):
28 def __call__(self, net, init_net=None, grad_map=None, blob_to_device=None,
29 modify_output_record=
False):
34 blob_to_device=blob_to_device,
35 modify_output_record=modify_output_record)