79407256

Date: 2025-02-02 20:09:33
Score: 1.5
Natty:
Report link

For this specific issue, I noticed that the torch linear model was the reason for the randomness, and adding

torch.nn.init.xavier_uniform_(self.linear.weight)  # Xavier initialization
torch.nn.init.zeros_(self.linear.bias) 

before the linear model fixed the randomness.

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: tina