File “/home/ali/BioNet_project/pytorch_version/utils.py”, line 90, in train
soft_score = soft_loss(y, x, beta=0.95)
File “/home/ali/BioNet_project/pytorch_version/metrics.py”, line 23, in soft_loss
cross_entropy = F.nll_loss(y_pred.log(), y_true, size_average=False)
AttributeError: ‘numpy.ndarray’ object has no attribute ‘log’