Skip to content

Commit aac3ca3

Browse files
authored
Condense description
1 parent 589e7c3 commit aac3ca3

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 a name of the op as a string or string variable. In case the variable is passed, then also add keyword `or`, and a default name as string that is used when the variable has a value of None.
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)