Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Jan 21, 2025. It is now read-only.
/meshPublic archive

Commitf08b18e

Browse files
David SoMesh TensorFlow Team
David So
authored and
Mesh TensorFlow Team
committed
Remove unnecessary name and cwise in squared relu.
PiperOrigin-RevId: 396177118
1 parent739fb09 commitf08b18e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

‎mesh_tensorflow/ops.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1921,9 +1921,9 @@ def relu(x, name="relu"):
19211921
returncwise(tf.nn.relu, [x],name=name,grad_function=_relu_grad)
19221922

19231923

1924-
defsquared_relu(x,name="squared_relu"):
1924+
defsquared_relu(x):
19251925
"""Squared ReLU from Primer paper (TODO(davidso):Link when released)."""
1926-
returncwise(lambdat:square(relu(t)), [x],name=name)
1926+
returnsquare(relu(x))
19271927

19281928

19291929
defleaky_relu(x,alpha=0.2,name="leaky_relu"):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp