Home | History | Annotate | Download | only in python

Lines Matching full:_spec

388     self._spec = spec if spec else get_pruning_hparams()
407 self._block_dim = [self._spec.block_height, self._spec.block_width]
410 self._block_pooling_function = self._spec.block_pooling_function
420 begin_step = self._spec.sparsity_function_begin_step
421 end_step = self._spec.sparsity_function_end_step
422 initial_sparsity = self._spec.initial_sparsity
423 target_sparsity = self._spec.target_sparsity
424 exponent = self._spec.sparsity_function_exponent
431 with ops.name_scope(self._spec.name):
448 with variable_scope.variable_scope(self._spec.name) as scope:
462 do_not_prune_list = self._spec.do_not_prune
502 nbins=self._spec.nbins,
512 float(self._spec.nbins)), max_value)
515 math_ops.multiply(current_threshold, 1 - self._spec.threshold_decay),
516 math_ops.multiply(threshold, self._spec.threshold_decay)
601 if self._spec.do_not_prune:
613 with ops.name_scope(self._spec.name):
629 with ops.name_scope(self._spec.name):
632 self._spec.begin_pruning_step),
636 self._spec.end_pruning_step),
637 math_ops.less(self._spec.end_pruning_step, 0)))
639 math_ops.add(self._last_update_step, self._spec.pruning_frequency),
660 with ops.name_scope(self._spec.name + '_summaries'):
672 logging.info(self._spec.to_json())