Skip to content

Commit

Permalink
plt add layer forward seed, test=model
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeref996 committed Oct 9, 2024
1 parent 0c6779b commit c8beb82
Show file tree
Hide file tree
Showing 1,529 changed files with 4,650 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.Tensor.erfinv_(x, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.Tensor.exponential_(x, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.nn.functional.relu_(x, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.reshape_(x, shape=[1, -1], )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.reshape(x, shape=[2, 0], )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.reshape(x, shape=(1, 4), )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.reshape(x, shape=(2, 2), )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.reshape_(x, shape=[6, 4, 4], )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.squeeze_(x, axis=-4, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.squeeze_(x, axis=[2, 3], )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.squeeze_(x, axis=(-4, -3), )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.squeeze_(x, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.tanh_(x, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.tanh_(x, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.tanh_(x, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.tanh_(x, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.unsqueeze_(x, axis=-1, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.unsqueeze_(x, axis=[1, 2], )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.abs(x, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.acos(x, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.add(x, y, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.add(x, y, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.add(x, y, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.add(x, y, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.add(x, y, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.add(x, y, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, input, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.addmm(input, x, y, alpha=5.0, beta=0.5, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, input, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.addmm(input, x, y, alpha=0.0, beta=0.5, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, input, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.addmm(input, x, y, alpha=-3.3, beta=0.5, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, input, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.addmm(input, x, y, alpha=-3.3, beta=0.0, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, input, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.addmm(input, x, y, alpha=-3.3, beta=-0.7, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, input, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.addmm(input, x, y, alpha=1, beta=1, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, input, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.addmm(input, x, y, alpha=0, beta=0, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, input, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.addmm(input, x, y, alpha=3.3, beta=-3.3, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, input, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.addmm(input, x, y, alpha=3.3, beta=-3.3, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, input, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.addmm(input, x, y, alpha=1.0, beta=1.0, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.allclose(x, y, rtol=1e-05, atol=1e-08, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.allclose(x, y, rtol=0.01, atol=0.0, equal_nan=False, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.allclose(x, y, rtol=1e-06, atol=0.001, equal_nan=False, )
return out

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ def forward(self, x, y, ):
"""
forward
"""

paddle.seed(33)
np.random.seed(33)
out = paddle.allclose(x, y, rtol=1e-06, atol=0.001, equal_nan=True, )
return out

Expand Down
Loading

0 comments on commit c8beb82

Please sign in to comment.