code: def __init__(self, adv_temperature=None):
      super(SoftplusLoss, self).__init__()
      self.criterion = nn.Softplus()
      if adv_temperature != None:
          self.adv_temperature = nn.Parameter(
              torch.Tensor([adv_temperature])
          )
          self.adv_temperature.requires_grad = False
          self.adv_flag = True
      else:
          self.adv_flag = False
  
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 1 to create a new SoftplusLoss object from inherited base classes: Loss with example: obj = SoftplusLoss(adv_temperature)