This repository has been archived by the owner on Nov 17, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[NumPy]Set numpy default dtype (#17283)
* draft 1 Preliminary completion fix rebase mistake * add new change * use global flag & fix part of CI error * fix CI error * modify docs * rebase * consistent with FFI * ones/full ffi * arange ffi * identity ffi * depart set_np_default_dtype from set_np to test CI fix sanity error fix sanity error * test CI * fix CI error : use InitNumpyType instead of InitType / remove full ffi fix sanity error fix rebase error * try to pass CI * set the second output's dtype of normal to be float32 * modify ffi op * update & rebase * test windows CI * comment test when platform is windows * resolve comment * add to set_np
- Loading branch information
1 parent
df28e61
commit 5c525c9
Showing
45 changed files
with
1,045 additions
and
277 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -83,5 +83,5 @@ def test_np_einsum(): | |
|
||
|
||
if __name__ == "__main__": | ||
npx.set_np() | ||
npx.set_np(dtype=False) | ||
test_np_einsum() |
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
Oops, something went wrong.