Closed Jiexin-Zheng closed 2 years ago
hello, thanks for your work, I think you can add the following codes to the definition of PartitionLoss() function for program robustness:
eps = sys.float_info.epsilon loss = torch.log(1+num_head/(var + eps))
Thanks! Code has been updated!
hello, thanks for your work, I think you can add the following codes to the definition of PartitionLoss() function for program robustness: