Skip to content

Commit d3baa88

Browse files
committed
[Revert] some typing
1 parent 6a24072 commit d3baa88

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

python/paddle/incubate/autograd/primapi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ def grad(outputs, inputs, grad_outputs=None):
143143
>>> main_program = paddle.static.Program()
144144
>>> with paddle.static.program_guard(main_program, startup_program):
145145
... x = paddle.static.data('x', shape=[1], dtype='float32')
146-
... x.stop_gradient = False
146+
... x.stop_gradients = False
147147
... y = x * x
148148
... x_grad = paddle.incubate.autograd.grad(y, x)
149149
... paddle.incubate.autograd.prim2orig()

python/paddle/incubate/operators/graph_khop_sampler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ def graph_khop_sampler(
8080
>>> colptr = paddle.to_tensor(colptr, dtype="int64")
8181
>>> nodes = paddle.to_tensor(nodes, dtype="int64")
8282
83-
>>> edge_src, edge_dst, sample_index, reindex_nodes = paddle.incubate.graph_khop_sampler.graph_khop_sampler(row, colptr, nodes, sample_sizes, False)
83+
>>> edge_src, edge_dst, sample_index, reindex_nodes = paddle.incubate.graph_khop_sampler(row, colptr, nodes, sample_sizes, False)
8484
8585
"""
8686

0 commit comments

Comments
 (0)