diff options
Diffstat (limited to 'tensorflow/g3doc/how_tos/style_guide.md')
-rw-r--r-- | tensorflow/g3doc/how_tos/style_guide.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/g3doc/how_tos/style_guide.md b/tensorflow/g3doc/how_tos/style_guide.md index 34504d2239..ccbb611c3e 100644 --- a/tensorflow/g3doc/how_tos/style_guide.md +++ b/tensorflow/g3doc/how_tos/style_guide.md @@ -134,7 +134,7 @@ Example: output_collections=['MY_OPS'], name='add_t1t2') [2.3, 3.4] """ - with tf.op_scope([tensor_in, other_tensor_in], name, "my_op"): + with tf.name_scope(name, "my_op", [tensor_in, other_tensor_in]): tensor_in = tf.convert_to_tensor(tensor_in) other_tensor_in = tf.convert_to_tensor(other_tensor_in) result = my_param * tensor_in + other_param * other_tensor_in |