def _get_bias_slot_configs(self):
    if (not self._config_run):
        return (self._bias_embedding.config if self._bias_embedding else None)
    slot_list = []
    fs_map = {}
    for slot_id in self._slot_ids:
        fs = self._feature_slots[slot_id]
        key = (id(fs._bias_initializer), id(fs._bias_optimizer))
        fs_map[key] = fs
        slot_list.append((fs.slot_id, 1, fs.hash_table_size, key))
    if (not slot_list):
        return None
    bias_config = utils._compute_slot_config(slot_list, 1, self._use_fid_v2)
    bias_config['name'] = 'bias'
    bias_config['slot_list'] = slot_list
    bias_config['initializers'] = [fs_map[i]._bias_initializer for i in bias_config['weight_group_keys']]
    bias_config['optimizers'] = [fs_map[i]._bias_optimizer for i in bias_config['weight_group_keys']]
    bias_config['use_fid_v2'] = self._use_fid_v2
    return bias_config
def _get_bias_slot_configs(self):
    if (not self._config_run):
        return (self._bias_embedding.config if self._bias_embedding else None)
    slot_list = []
    fs_map = {}
    for slot_id in self._slot_ids:
        fs = self._feature_slots[slot_id]
        key = (id(fs._bias_initializer), id(fs._bias_optimizer))
        fs_map[key] = fs
        slot_list.append((fs.slot_id, 1, fs.hash_table_size, key))
    if (not slot_list):
        return None
    bias_config = utils._compute_slot_config(slot_list, 1, self._use_fid_v2)
    bias_config['name'] = 'bias'
    bias_config['slot_list'] = slot_list
    bias_config['initializers'] = [fs_map[i]._bias_initializer for i in bias_config['weight_group_keys']]
    bias_config['optimizers'] = [fs_map[i]._bias_optimizer for i in bias_config['weight_group_keys']]
    bias_config['use_fid_v2'] = self._use_fid_v2
    return bias_config