Skip to content

Commit

Permalink
[API 2.0] Remove disable_static in input_spec doc (PaddlePaddle#2726)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius84 authored Sep 29, 2020
1 parent fb2dc88 commit 22ba8a8
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions doc/paddle/guides/dygraph_to_static/input_spec_cn.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.. _user_guide_dy2sta_input_spec_cn:

InputSpec功能介绍
InputSpec 功能介绍
=================


Expand Down Expand Up @@ -103,9 +103,6 @@ InputSpec 初始化中的只有 ``shape`` 是必须参数, ``dtype`` 和 ``nam
out = out + y
return out
paddle.disable_static()
net = SimpleNet()
# save static model for inference directly
Expand Down Expand Up @@ -137,7 +134,6 @@ InputSpec 初始化中的只有 ``shape`` 是必须参数, ``dtype`` 和 ``nam
out = out + y
return out
paddle.disable_static()
net = SimpleNet()
# train process (Pseudo code)
Expand Down
4 changes: 0 additions & 4 deletions doc/paddle/guides/dygraph_to_static/input_spec_en.rst
Original file line number Diff line number Diff line change
Expand Up @@ -103,9 +103,6 @@ A simple example as follows:
out = out + y
return out
paddle.disable_static()
net = SimpleNet()
# save static model for inference directly
Expand Down Expand Up @@ -137,7 +134,6 @@ If we want to train model in dygraph mode and only expect to save the inference
out = out + y
return out
paddle.disable_static()
net = SimpleNet()
# train process (Pseudo code)
Expand Down

0 comments on commit 22ba8a8

Please sign in to comment.