Skip to content
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

Merged
merged 11 commits into from
Apr 18, 2020

Conversation

zhhsplendid
Copy link
Member

@zhhsplendid zhhsplendid commented Apr 15, 2020

  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

@zhhsplendid zhhsplendid force-pushed the rename_decorator branch 2 times, most recently from effa10c to 964184e Compare April 17, 2020 04:57
# 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.

Copy link
Contributor

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

Copy link
Member Author

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.
Copy link
Contributor

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.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

Copy link
Contributor

@liym27 liym27 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@zhhsplendid zhhsplendid merged commit 81c4def into PaddlePaddle:develop Apr 18, 2020
zhhsplendid added a commit to zhhsplendid/Paddle that referenced this pull request Apr 19, 2020
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
zhhsplendid added a commit that referenced this pull request Apr 19, 2020
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
zhhsplendid added a commit that referenced this pull request Apr 19, 2020
…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
zhhsplendid added a commit to zhhsplendid/Paddle that referenced this pull request Apr 19, 2020
…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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants