Skip to content

Commit 5e34bd1

Browse files
Merge pull request #476 from armando-fandango:name_scope-style-instruction-update
PiperOrigin-RevId: 245130033
2 parents 073c6b8 + aac3ca3 commit 5e34bd1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

site/en/community/contribute/code_style.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,8 @@ creates a part of the graph and returns output tensors.
113113
convert non-tensor inputs into tensors if they are using C++ operations.
114114
Note that the arguments are still described as a `Tensor` object of a
115115
specific dtype in the documentation.
116-
* Each Python operation should have a `name_scope` like below. Pass as arguments `name`, a default name of the op, and a list of the input tensors.
116+
* Each Python operation should have a `name_scope`. As seen below, pass the name
117+
of the op as a string.
117118
* Operations should contain an extensive Python comment with Args and Returns
118119
declarations that explain both the type and meaning of each value. Possible
119120
shapes, dtypes, or ranks should be specified in the description. See

0 commit comments

Comments
 (0)