We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4ef711a commit 506b4d9Copy full SHA for 506b4d9
tests/py/dynamo/conversion/test_linear_aten.py
@@ -104,12 +104,6 @@ class linear(nn.Module):
104
def __init__(self):
105
super().__init__()
106
self.weight = torch.rand(weight_shape)
107
- # self.weight = torch.randn(weight_shape)
108
- # # Note: When using torch.randn for weight initialization, the following assertion error occurs:
109
- # AssertionError: Tensor-likes are not close!
110
- # Mismatched elements: 323 / 2304 (14.0%)
111
- # Greatest absolute difference: 0.015128374099731445 at index (1, 1, 139) (up to 0.001 allowed)
112
- # Greatest relative difference: 3.242828845977783 at index (1, 1, 154) (up to 0.001 allowed)
113
114
if bias_shape:
115
self.bias = torch.randn(bias_shape)
0 commit comments