(self, symbol, data_names, label_names,
logger=logging, context=ctx.cpu(), work_load_list=None,
max_data_shapes=None, max_label_shapes=None, fixed_param_prefix=None)
| 735 | fixed_param_prefix : list of str, indicating fixed parameters |
| 736 | """ |
| 737 | def __init__(self, symbol, data_names, label_names, |
| 738 | logger=logging, context=ctx.cpu(), work_load_list=None, |
| 739 | max_data_shapes=None, max_label_shapes=None, fixed_param_prefix=None): |
| 740 | super(MutableModule, self).__init__(logger=logger) |
| 741 | self._symbol = symbol |
| 742 | self._data_names = data_names |
| 743 | self._label_names = label_names |
| 744 | self._context = context |
| 745 | self._work_load_list = work_load_list |
| 746 | |
| 747 | self._curr_module = None |
| 748 | self._max_data_shapes = max_data_shapes |
| 749 | self._max_label_shapes = max_label_shapes |
| 750 | self._fixed_param_prefix = fixed_param_prefix |
| 751 | |
| 752 | fixed_param_names = list() |
| 753 | if fixed_param_prefix is not None: |
| 754 | for name in self._symbol.list_arguments(): |
| 755 | for prefix in self._fixed_param_prefix: |
| 756 | if prefix in name: |
| 757 | fixed_param_names.append(name) |
| 758 | self._fixed_param_names = fixed_param_names |
| 759 | self._preload_opt_states = None |
| 760 | |
| 761 | def _reset_bind(self): |
| 762 | self.binded = False |
nothing calls this directly
no test coverage detected