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

add set default dtype, get default dtype #26006

Merged
merged 2 commits into from
Aug 18, 2020

Conversation

ForFishes
Copy link
Member

PR types

New features

PR changes

APIs

Describe

add "set_default_dtype" ,"get_default_dtype"

@paddle-bot-old
Copy link

paddle-bot-old bot commented Aug 6, 2020

Thanks for your contribution!
Please wait for the result of CI firstly. See Paddle CI Manual for details.

Copy link
Contributor

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

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

you may need to define alias in 'python/paddle/init.py ', so that the api could be exposed as paddle.set_default_dtype

jzhang533
jzhang533 previously approved these changes Aug 14, 2020
Copy link
Contributor

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

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

lgtm

@ForFishes ForFishes closed this Aug 14, 2020
@ForFishes ForFishes reopened this Aug 14, 2020
@zhiqiu zhiqiu self-requested a review August 14, 2020 06:18
zhiqiu
zhiqiu previously approved these changes Aug 14, 2020
Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM

This PR changes Linear, is it consistent with the old models?

@zhiqiu zhiqiu self-requested a review August 14, 2020 06:23
Copy link
Contributor

@jzhang533 jzhang533 left a comment

Choose a reason for hiding this comment

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

lgtm

Copy link
Contributor

@XiaoguangHu01 XiaoguangHu01 left a comment

Choose a reason for hiding this comment

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

LGTM

Copy link
Contributor

@zhiqiu zhiqiu left a comment

Choose a reason for hiding this comment

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

LGTM

@ForFishes ForFishes merged commit fd0051b into PaddlePaddle:develop Aug 18, 2020
@ForFishes ForFishes deleted the global_dtype branch August 18, 2020 08:23
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.

None yet

4 participants