-
Notifications
You must be signed in to change notification settings - Fork 525
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
Adds Ascend platform adaptation code #1881
Open
ZhengdQin
wants to merge
19
commits into
deepmodeling:devel
Choose a base branch
from
ZhengdQin:devel
base: devel
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 14 commits
Commits
Show all changes
19 commits
Select commit
Hold shift + click to select a range
1a42f36
add convert_org_to_ascend in convert
invalid-email-address 3947b65
add convert_org_to_ascend
invalid-email-address 344f02e
change the variable is_transfer to is_ascend_transfer
invalid-email-address 3f1d134
1. add a new dp argument transfer-to-ascend; 2. add dp test for ascen…
invalid-email-address 93016e3
1. fix network bug; 2. fix prod_env_mat op register bug
invalid-email-address fcc909c
fix prod_env_mat_multi_device.cc miswriting
invalid-email-address 05216ef
fix a Ascend incremental code bug
invalid-email-address 3b9a794
fix mixed_prec bug
invalid-email-address ba22b1f
fix some details according to the Modification comments
invalid-email-address 2fbc8fc
fix transfer spell
invalid-email-address 4771c75
Second modified version according to the comments, we refactored the …
invalid-email-address 98a68c9
Third modified version according to the comments
invalid-email-address 9124fac
sync fork modifications
invalid-email-address a1f4a10
fix a bug in network.py
invalid-email-address d2ec06d
1. add a test unit for transfer-to-ascend interface; 2. fix the bugs …
invalid-email-address aeb1804
set DP_INTERFACE_PREC=ascend_mix for the test unit
invalid-email-address 3eb6609
modify deeppot-2.pbtxt which has BatchMatMulV2
invalid-email-address 563f312
set ascend_mix
invalid-email-address d0261d5
fix a cmakelist bug, find python first then find TF
invalid-email-address File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
from deepmd.utils.transfer_to_ascend import mix_precision | ||
|
||
def transfer_to_ascend( | ||
*, | ||
TO: str, | ||
input_model: str, | ||
output_model: str, | ||
**kwargs, | ||
): | ||
if TO == 'mix_precision': | ||
mix_precision(input_model, output_model, **kwargs) | ||
else: | ||
raise RuntimeError('unsupported transfering type' + FROM) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
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.
Thanks, we have fixed it.