code: def get_weights(self, n_score):
      return F.softmax(n_score * self.adv_temperature, dim=-1).detach()
  
file_path: OpenKE/openke/module/loss/SoftplusLoss.py
imports: import torch
  import torch.nn
  import torch.nn.functional
  import numpy
  from .Loss import Loss
label_desc: Use image node_id 2 for calling the SoftplusLoss obj's underlying member method code with example usage: obj.get_weights(n_score) and returns: F