You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
if self.training and not self.hard_masking:
if pruner_outputs is not None:
threshold, pruning_scores = pruner_outputs['threshold'], pruner_outputs['scores']
self.mask = torch.sigmoid((pruning_scores - threshold) / self.temperature)
layer_output = layer_output * self.mask.unsqueeze(-1)
The text was updated successfully, but these errors were encountered:
LTP/src/transformers/models/ltp/modeling_ltp.py
Line 247 in f1d5ec8
The text was updated successfully, but these errors were encountered: