3 from __future__
import absolute_import
4 from __future__
import division
5 from __future__
import print_function
6 from __future__
import unicode_literals
14 def __init__(self, *args, **kwargs):
15 super(SamplingTrainableMixin, self).__init__(*args, **kwargs)
23 List of parameter blobs for prediction net 28 def train_param_blobs(self):
30 If train_param_blobs is not set before used, default to param_blobs 36 @train_param_blobs.setter
37 def train_param_blobs(self, blobs):
39 assert blobs
is not None 44 def _add_ops(self, net, param_blobs):
46 Add ops to the given net, using the given param_blobs 50 def add_ops(self, net):
51 self._add_ops(net, self.param_blobs)
53 def add_train_ops(self, net):
54 self._add_ops(net, self.train_param_blobs)
_train_param_blobs_frozen