-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Dy2stat] Rename Dygraph To Static Decorators #23880
[Dy2stat] Rename Dygraph To Static Decorators #23880
Conversation
zhhsplendid
commented
Apr 15, 2020
•
edited
Loading
edited
- Rename Dygraph To Static Decorators to declarative
- dygraph_to_static_func is still using in some training tests, I cannot delete it now.
- Add some API docs
test=develop
… rename_decorator test=develop
test=develop
test=develop
test=develop
… rename_decorator test=develop
test=develop
0e96f00
to
856a1e5
Compare
… rename_decorator test=develop
effa10c
to
964184e
Compare
test=develop
964184e
to
0a61b5a
Compare
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
# See the License for the specific language governing permissions and | ||
# limitations under the License. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems to be repeated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
Returns: | ||
callable: converting imperative dygraph APIs into declarative | ||
net-building APIs. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Better to capitalize the first letter of sentence in Args
and Returns
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
test=develop
… rename_decorator test=develop
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
1. Rename Dygraph To Static Decorators to declarative 2. dygraph_to_static_func is still using in some training tests, I cannot delete it now. 3. Add some API docs
…anslator and Fix Related Bug (#23958) To prepare for publishing APIs, I added tests for that we can access dy2stat through: @fluid.dygraph.declarative @fluid.dygraph.jit.declarative fluid.dygraph.ProgramTranslator() fluid.dygraph.dygraph_to_static.ProgramTranslator() fluid.dygraph.dygraph_to_static.program_translator.ProgramTranslator() It surprised me that we had bugs on those different usages. I have fixed them. I also added example codes for these new APIs This PR also pulls my current PR #23880, so the PR history is long. For reviewer information, you could review this PR after #23880 is merged
…anslator and Fix Related Bug (PaddlePaddle#23958) To prepare for publishing APIs, I added tests for that we can access dy2stat through: @fluid.dygraph.declarative @fluid.dygraph.jit.declarative fluid.dygraph.ProgramTranslator() fluid.dygraph.dygraph_to_static.ProgramTranslator() fluid.dygraph.dygraph_to_static.program_translator.ProgramTranslator() It surprised me that we had bugs on those different usages. I have fixed them. I also added example codes for these new APIs This PR also pulls my current PR PaddlePaddle#23880, so the PR history is long. For reviewer information, you could review this PR after PaddlePaddle#23880 is merged