Publish 11 evaluated Astra histories with reproducible checkpoint artifacts (part 40)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- .gitattributes +36 -0
- shared/package-files/d0/d0ed059a6121cde784526964992365b87b995618654ce2041ead5873e8572c56/blob +471 -0
- shared/package-files/d0/d0edee15f91b406f3f99726e44eb990be6e34fd0345b52b910c568e0eef6a2a8/blob +1 -0
- shared/package-files/d0/d0eee1c38f9d55f010da652848b6e35986a448dcdcbfa07a9f20490913da8dda/blob +16 -0
- shared/package-files/d0/d0f0ef33cabf63d34196cea674752b86f99e4969f479d591419a2cf6ff022741/blob +445 -0
- shared/package-files/d0/d0f1d1961f5f7ac4eb6bc9c30d2a2160b021832f8a60da8d8dcf2073e2e870a9/blob +0 -0
- shared/package-files/d0/d0f23f94e7325c92a98105fd65fe54bb8affefb1a2349d30a6f979b899e0ca6c/blob +0 -0
- shared/package-files/d0/d0f3670ea2a4a2467b11154381b7acf0a35973e21226b65495565ce4b916d7c1/blob +1375 -0
- shared/package-files/d0/d0f57acab07fe4f9c116c3392d85946bac8e78608f409cea70005f16ea019b57/blob +3 -0
- shared/package-files/d0/d0f7973193eb35d19e99d1d8bca3c7f3a8b8d0410508af34ad571aee8ec5ab05/blob +0 -0
- shared/package-files/d0/d0fa53f32abd96d97fb96c50fd0a05d30f83d667315dcaa20ae2f22c52b36f62/blob +70 -0
- shared/package-files/d0/d0faa9d7997d5696bff92384144e0b9dfb2e4c38375817613f81a89c06ec6383/blob +6 -0
- shared/package-files/d0/d0fcf91bf804e5e905af4c010a43f3cd87f9d21b099be08934a5acceab609ddf/blob +272 -0
- shared/package-files/d0/d0fe17fc3e92faddf23dea67cdd0c9bdfa3143ae67a93488733b4ec1fe38173b/blob +0 -0
- shared/package-files/d0/d0ffb4973b6651de10e60155e16d7f39a3ead8da0aa3b1a5be6fb181122a8f7d/blob +3 -0
- shared/package-files/d0/d0ffb73a5cb4d362844098a046ae382787c0e6482b7ca105ba896b3311730713/blob +39 -0
- shared/package-files/d1/d105409050bee7120c75bbf7123b7ef7625852dd07b6228b91b33c913671a0a9/blob +0 -0
- shared/package-files/d1/d1077656f59bb84a73d5c477a4adafdd8761d037a58e4b5b9fed8f8dbb2275f9/blob +3 -0
- shared/package-files/d1/d10ac70fd4d82a5499b8ef1dae75376d4149ad2bbcbf94a772ab6445258b8c63/blob +108 -0
- shared/package-files/d1/d10d4526a84c2480a0b962fb1dbad12b0c02caa7d95132cded6c4e79e29adbed/blob +0 -0
- shared/package-files/d1/d111625ea25c35f71d1fd8dc0dc06246e9cf756707667e00d1b95675247e32a1/blob +380 -0
- shared/package-files/d1/d1119423dda95126d93a1095b189e7832c14d70332dcdd2d0af063f26349bbdf/blob +22 -0
- shared/package-files/d1/d11309bf78977fd3a500c085e1a201e0fca9e009e8294baa0bfb58fb235019b2/blob +73 -0
- shared/package-files/d1/d115718818e3e3367847ce35bb5ff0361d08993d9749d438c918f8eb87ad8814/blob +27 -0
- shared/package-files/d1/d119859b1979b8decbc7beb0ac5349d90cade35b2e593dc7a9e7f4eb7b22c681/blob +2068 -0
- shared/package-files/d1/d11a5a4f1adb5ff9a5d08b2c8a0424aff10ced87e9b342c1c348dfd4a468bf82/blob +0 -0
- shared/package-files/d1/d11e5dfca67654cfb9f73d9afce9ca94c45403af02741c7ac346c25ded1d2a94/blob +0 -0
- shared/package-files/d1/d121f02fccfb396a6b51507770b045025bf49b4fef45febd8a287ed64461618d/blob +410 -0
- shared/package-files/d1/d123e0b4c2614f680808b58cca0c140ba187494b2c8bcf8c604c7eb739c70882/blob +28 -0
- shared/package-files/d1/d12457044da126028937f45fe199f4d282970bf4e46b779f3d6338ef383a0686/blob +154 -0
- shared/package-files/d1/d12495f2a5e115f03cf93f73bee59ab084fc6cd6cf5cb517e19419a740a80f39/blob +10 -0
- shared/package-files/d1/d1284cb753ddb8fdcafa7db41e3c6159140c39128ffeae2bb08458796ce80d1d/blob +226 -0
- shared/package-files/d1/d12a142fcd22c0b3c7d8cf924e86421e5fde381cf52c77bf10b098e5cdcafef7/blob +0 -0
- shared/package-files/d1/d12b3cc66af3f42a8ebe63e1c91d24f92c6237b6a93a3702938dffabd812d77b/blob +74 -0
- shared/package-files/d1/d12c79c8bf03f29c980d74c80590284e24ac4691bf789cfcb83dadb55ae49615/blob +20 -0
- shared/package-files/d1/d12ee45a23c42919a2d224bc250dcae530a1cd2a59361026d668f25d081a513f/blob +23 -0
- shared/package-files/d1/d1324a6081d2205c907151d97481d9d7d6fbb6ab2dfec63b899c232b372f6413/blob +1615 -0
- shared/package-files/d1/d1329d662c712d603ec70b40670e07729a899a3e17a6bc7566472dcb48134596/blob +120 -0
- shared/package-files/d1/d132f83197095d4a28f6a03bbaed2f2efede1eb5d17ab566c9f8bb3b5e3d213c/blob +9 -0
- shared/package-files/d1/d136f12171747ea2f89913a16f452fafac4c411543f62b7c24523b3c41261c19/blob +0 -0
- shared/package-files/d1/d13744c2cd7cd7bf54732637d88ce57fc6b8cd561beadeb62c4190df13ff3dd9/blob +148 -0
- shared/package-files/d1/d139a725e64239a4d69de79603ae839712a06946494df3f48ca80b018d638b28/blob +23 -0
- shared/package-files/d1/d139acf8eb2a687729587edad85e26a8aa8457e1b96ed8992ad7b77149c45903/blob +10 -0
- shared/package-files/d1/d13ad093943853e1af4974dee049a287a07624983658cbbfbb4a528fddb0a950/blob +174 -0
- shared/package-files/d1/d13da4530fb2a70d9d66ee96508e6aa0de35f1c0e60a32e52b71b847cec9d292/blob +250 -0
- shared/package-files/d1/d13edbbfb3adb0315c81e9effc52e599d49aa0b6313a5fd622696997da7c56cc/blob +91 -0
- shared/package-files/d1/d13f49c7092a5e91accc67dcaecb71272459ced57d551b05a957068437049a13/blob +72 -0
- shared/package-files/d1/d142631e75bfb34a0aa462cc782a34f69e2448e464706638ef25a42ba230f317/blob +0 -0
- shared/package-files/d1/d143659ddde1ce57f6734122c0b24586d4f256ecb2932c02d13aa206ba4d9501/blob +0 -0
- shared/package-files/d1/d146208ff5159c304faa373716ee1096567fca252e416929c84c25fb34dd096f/blob +0 -0
.gitattributes
CHANGED
|
@@ -947,3 +947,39 @@ shared/package-files/cf/cfbd026d00067a99aa9f14d1d5aa48076a97ad39e7d32c49c8964a10
|
|
| 947 |
shared/package-files/cf/cfccd871b530fa1b23e6ed6ec1f43940cdb564930e6086a35d116e6636072077/blob filter=lfs diff=lfs merge=lfs -text
|
| 948 |
shared/package-files/d0/d060a9597056170ec121b704840e838df98bece671673e490c84bc82c788fa83/blob filter=lfs diff=lfs merge=lfs -text
|
| 949 |
shared/package-files/d0/d08783f85bb4a16dcd73eb9317000b97ce811a98e0c43d44566912b21427bf82/blob filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 947 |
shared/package-files/cf/cfccd871b530fa1b23e6ed6ec1f43940cdb564930e6086a35d116e6636072077/blob filter=lfs diff=lfs merge=lfs -text
|
| 948 |
shared/package-files/d0/d060a9597056170ec121b704840e838df98bece671673e490c84bc82c788fa83/blob filter=lfs diff=lfs merge=lfs -text
|
| 949 |
shared/package-files/d0/d08783f85bb4a16dcd73eb9317000b97ce811a98e0c43d44566912b21427bf82/blob filter=lfs diff=lfs merge=lfs -text
|
| 950 |
+
shared/package-files/d0/d0ffb4973b6651de10e60155e16d7f39a3ead8da0aa3b1a5be6fb181122a8f7d/blob filter=lfs diff=lfs merge=lfs -text
|
| 951 |
+
shared/package-files/d1/d1077656f59bb84a73d5c477a4adafdd8761d037a58e4b5b9fed8f8dbb2275f9/blob filter=lfs diff=lfs merge=lfs -text
|
| 952 |
+
shared/package-files/d1/d19d9d3c170a074e2c4ff56b606761e5d6686077a9460416e4691a0368d6b6b6/blob filter=lfs diff=lfs merge=lfs -text
|
| 953 |
+
shared/package-files/d1/d1a0ed4d9a1da76ba5dab410441bb83f6415a841acdc130d20c6504dfaf11cde/blob filter=lfs diff=lfs merge=lfs -text
|
| 954 |
+
shared/package-files/d1/d1efe233bd4d377b622ad09f65035bf89e2dfcbec5a0b0444c2e235c5773acd7/blob filter=lfs diff=lfs merge=lfs -text
|
| 955 |
+
shared/package-files/d2/d2acdedbf3527da2d985ce1c3a9929efaecf0f1ba63056e2b6080591247e2c58/blob filter=lfs diff=lfs merge=lfs -text
|
| 956 |
+
shared/package-files/d2/d2bc0b8127ab14cf1df3ae8fe4242829830ef54cc00ceafd720e68ef7e67f495/blob filter=lfs diff=lfs merge=lfs -text
|
| 957 |
+
shared/package-files/d2/d2da887bd5aba8f90b9726beefe1a4dd174e541ef39952f69b3492df0591a9ba/blob filter=lfs diff=lfs merge=lfs -text
|
| 958 |
+
shared/package-files/d3/d30758e332c4303643f19db8061f1e79956a86a625883d04fae87cc269a1d17e/blob filter=lfs diff=lfs merge=lfs -text
|
| 959 |
+
shared/package-files/d3/d30adf6a4e7bac0145680e67ceed3e9d2ff4a2ca579a147cf8815a6949a2c42e/blob filter=lfs diff=lfs merge=lfs -text
|
| 960 |
+
shared/package-files/d3/d30e994b09d9f30f7efeb6dc81fa05ab4a7be32b4e78c2b48fc3b6228197bfb1/blob filter=lfs diff=lfs merge=lfs -text
|
| 961 |
+
shared/package-files/d3/d3193fe31df6de065d5f9c45edccb24076c9635c52711920feabfc03cf82c8e3/blob filter=lfs diff=lfs merge=lfs -text
|
| 962 |
+
shared/package-files/d3/d32dfd0be03bd30fe392602e724b9d6fa0586c430b9be830373b644480005dd9/blob filter=lfs diff=lfs merge=lfs -text
|
| 963 |
+
shared/package-files/d3/d35a02302739bc85f331fe098b3720b6890cbac159fb118d7497cd66ce77baa0/blob filter=lfs diff=lfs merge=lfs -text
|
| 964 |
+
shared/package-files/d3/d3606ac2d52a59ae272e5b9aac1fd098a54424a51a45135fa3b2104e64a49386/blob filter=lfs diff=lfs merge=lfs -text
|
| 965 |
+
shared/package-files/d3/d384478bd58d755f22fea782c703bff940e3bbd360709299ddfd1440ce6a725b/blob filter=lfs diff=lfs merge=lfs -text
|
| 966 |
+
shared/package-files/d3/d3c3f7c9115cc2e890683e9783dd74ed139b39a6ab8a5b48793453943680e9f9/blob filter=lfs diff=lfs merge=lfs -text
|
| 967 |
+
shared/package-files/d3/d3e2267ac18118806a4772d389c3fca4d5a01f40a0044dbc5a3951ca4dfb9260/blob filter=lfs diff=lfs merge=lfs -text
|
| 968 |
+
shared/package-files/d3/d3ea52e7b6e968de0d884df1288193596fa95b803db4f92a18279a7398004475/blob filter=lfs diff=lfs merge=lfs -text
|
| 969 |
+
shared/package-files/d4/d416d5e4b518c98b57b02f02b1a159659ba6395fcabd527f076fa6fdb7517ddb/blob filter=lfs diff=lfs merge=lfs -text
|
| 970 |
+
shared/package-files/d4/d45be6bf592c88a6cd24910bb2ea3f254bbdac51e9edcfd1a3e3a43370d8b3c5/blob filter=lfs diff=lfs merge=lfs -text
|
| 971 |
+
shared/package-files/d4/d493f50a33e82a4420494c54d1fca1539d177bdc27ab190bc5fe6e92f62fb637/blob filter=lfs diff=lfs merge=lfs -text
|
| 972 |
+
shared/package-files/d4/d4d827a9d5d6453982f115f7e7bb448f2b23d64b5b89de61a64e838c2f936200/blob filter=lfs diff=lfs merge=lfs -text
|
| 973 |
+
shared/package-files/d4/d4e8951ded34a4600e91fe80d4ac7854276eedd16f51bb353794b7d2c2831f70/blob filter=lfs diff=lfs merge=lfs -text
|
| 974 |
+
shared/package-files/d5/d52293a81c168347002c88a81f2469cb8be72e7a527699946b68b4614b857dfe/blob filter=lfs diff=lfs merge=lfs -text
|
| 975 |
+
shared/package-files/d6/d67eea63a4087be25684a220992163dd59b69edae920409aed2e90f2e98c0d63/blob filter=lfs diff=lfs merge=lfs -text
|
| 976 |
+
shared/package-files/d6/d6c59efae8add1fbaa406a1007eca03df58ac39e657b175d7cb82682ce37369f/blob filter=lfs diff=lfs merge=lfs -text
|
| 977 |
+
shared/package-files/d6/d6f9e4af876bfad3c56c075e1b07237354d5e06c9a55e9c266b222dfb2959080/blob filter=lfs diff=lfs merge=lfs -text
|
| 978 |
+
shared/package-files/d7/d728ffa4ec2c862fea5d967d31cf087f19277c20070929c27a17eeedff1baef2/blob filter=lfs diff=lfs merge=lfs -text
|
| 979 |
+
shared/package-files/d7/d73ecbbb51654522342ba0470a6263a9684e617c2b8374565fe3a79593f4b231/blob filter=lfs diff=lfs merge=lfs -text
|
| 980 |
+
shared/package-files/d7/d7a4ad8c10ee00bc2de44643e236cfec19b8d50cb395752edfc7dca8ffd6cf57/blob filter=lfs diff=lfs merge=lfs -text
|
| 981 |
+
shared/package-files/d7/d7d121e5f899fb71a1439aa3f7f51121e0ea64f30a736697072363fe38b30474/blob filter=lfs diff=lfs merge=lfs -text
|
| 982 |
+
shared/package-files/d8/d8202427dad506a3249765966fe80d020ca7813e8fa3d110a428a76cca98aee7/blob filter=lfs diff=lfs merge=lfs -text
|
| 983 |
+
shared/package-files/d8/d83125fd8622c1a69e29ca0aa80740c045420a4020db860f382926ff457b1331/blob filter=lfs diff=lfs merge=lfs -text
|
| 984 |
+
shared/package-files/d8/d8649d1526f08fd0c1c2d6de0e7ef607e07f103f8f8670a83ade7c5d2d6a7a1a/blob filter=lfs diff=lfs merge=lfs -text
|
| 985 |
+
shared/package-files/d8/d87ed7aee3a3b78f1c2478f568a3a79e4010a110fccc3c9bad0a1ca414c917f2/blob filter=lfs diff=lfs merge=lfs -text
|
shared/package-files/d0/d0ed059a6121cde784526964992365b87b995618654ce2041ead5873e8572c56/blob
ADDED
|
@@ -0,0 +1,471 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
+
CANT_LOCK: int
|
| 18 |
+
CANT_OPEN_FILE: int
|
| 19 |
+
FILE_NOT_FOUND: int
|
| 20 |
+
CANT_READ_DIR: int
|
| 21 |
+
CANT_SET_WD: int
|
| 22 |
+
CHECKREAD: int
|
| 23 |
+
DISK_FULL: int
|
| 24 |
+
DUP_KEY: int
|
| 25 |
+
ERROR_ON_CLOSE: int
|
| 26 |
+
ERROR_ON_READ: int
|
| 27 |
+
ERROR_ON_RENAME: int
|
| 28 |
+
ERROR_ON_WRITE: int
|
| 29 |
+
FILE_USED: int
|
| 30 |
+
FILSORT_ABORT: int
|
| 31 |
+
FORM_NOT_FOUND: int
|
| 32 |
+
GET_ERRNO: int
|
| 33 |
+
ILLEGAL_HA: int
|
| 34 |
+
KEY_NOT_FOUND: int
|
| 35 |
+
NOT_FORM_FILE: int
|
| 36 |
+
NOT_KEYFILE: int
|
| 37 |
+
OLD_KEYFILE: int
|
| 38 |
+
OPEN_AS_READONLY: int
|
| 39 |
+
OUTOFMEMORY: int
|
| 40 |
+
OUT_OF_SORTMEMORY: int
|
| 41 |
+
UNEXPECTED_EOF: int
|
| 42 |
+
CON_COUNT_ERROR: int
|
| 43 |
+
OUT_OF_RESOURCES: int
|
| 44 |
+
BAD_HOST_ERROR: int
|
| 45 |
+
HANDSHAKE_ERROR: int
|
| 46 |
+
DBACCESS_DENIED_ERROR: int
|
| 47 |
+
ACCESS_DENIED_ERROR: int
|
| 48 |
+
NO_DB_ERROR: int
|
| 49 |
+
UNKNOWN_COM_ERROR: int
|
| 50 |
+
BAD_NULL_ERROR: int
|
| 51 |
+
BAD_DB_ERROR: int
|
| 52 |
+
TABLE_EXISTS_ERROR: int
|
| 53 |
+
BAD_TABLE_ERROR: int
|
| 54 |
+
NON_UNIQ_ERROR: int
|
| 55 |
+
SERVER_SHUTDOWN: int
|
| 56 |
+
BAD_FIELD_ERROR: int
|
| 57 |
+
WRONG_FIELD_WITH_GROUP: int
|
| 58 |
+
WRONG_GROUP_FIELD: int
|
| 59 |
+
WRONG_SUM_SELECT: int
|
| 60 |
+
WRONG_VALUE_COUNT: int
|
| 61 |
+
TOO_LONG_IDENT: int
|
| 62 |
+
DUP_FIELDNAME: int
|
| 63 |
+
DUP_KEYNAME: int
|
| 64 |
+
DUP_ENTRY: int
|
| 65 |
+
WRONG_FIELD_SPEC: int
|
| 66 |
+
PARSE_ERROR: int
|
| 67 |
+
EMPTY_QUERY: int
|
| 68 |
+
NONUNIQ_TABLE: int
|
| 69 |
+
INVALID_DEFAULT: int
|
| 70 |
+
MULTIPLE_PRI_KEY: int
|
| 71 |
+
TOO_MANY_KEYS: int
|
| 72 |
+
TOO_MANY_KEY_PARTS: int
|
| 73 |
+
TOO_LONG_KEY: int
|
| 74 |
+
KEY_COLUMN_DOES_NOT_EXITS: int
|
| 75 |
+
BLOB_USED_AS_KEY: int
|
| 76 |
+
TOO_BIG_FIELDLENGTH: int
|
| 77 |
+
WRONG_AUTO_KEY: int
|
| 78 |
+
READY: int
|
| 79 |
+
NORMAL_SHUTDOWN: int
|
| 80 |
+
GOT_SIGNAL: int
|
| 81 |
+
SHUTDOWN_COMPLETE: int
|
| 82 |
+
FORCING_CLOSE: int
|
| 83 |
+
IPSOCK_ERROR: int
|
| 84 |
+
NO_SUCH_INDEX: int
|
| 85 |
+
WRONG_FIELD_TERMINATORS: int
|
| 86 |
+
BLOBS_AND_NO_TERMINATED: int
|
| 87 |
+
TEXTFILE_NOT_READABLE: int
|
| 88 |
+
FILE_EXISTS_ERROR: int
|
| 89 |
+
LOAD_INFO: int
|
| 90 |
+
ALTER_INFO: int
|
| 91 |
+
WRONG_SUB_KEY: int
|
| 92 |
+
CANT_REMOVE_ALL_FIELDS: int
|
| 93 |
+
CANT_DROP_FIELD_OR_KEY: int
|
| 94 |
+
INSERT_INFO: int
|
| 95 |
+
UPDATE_TABLE_USED: int
|
| 96 |
+
NO_SUCH_THREAD: int
|
| 97 |
+
KILL_DENIED_ERROR: int
|
| 98 |
+
NO_TABLES_USED: int
|
| 99 |
+
TOO_BIG_SET: int
|
| 100 |
+
NO_UNIQUE_LOGFILE: int
|
| 101 |
+
TABLE_NOT_LOCKED_FOR_WRITE: int
|
| 102 |
+
TABLE_NOT_LOCKED: int
|
| 103 |
+
BLOB_CANT_HAVE_DEFAULT: int
|
| 104 |
+
WRONG_DB_NAME: int
|
| 105 |
+
WRONG_TABLE_NAME: int
|
| 106 |
+
TOO_BIG_SELECT: int
|
| 107 |
+
UNKNOWN_ERROR: int
|
| 108 |
+
UNKNOWN_PROCEDURE: int
|
| 109 |
+
WRONG_PARAMCOUNT_TO_PROCEDURE: int
|
| 110 |
+
WRONG_PARAMETERS_TO_PROCEDURE: int
|
| 111 |
+
UNKNOWN_TABLE: int
|
| 112 |
+
FIELD_SPECIFIED_TWICE: int
|
| 113 |
+
INVALID_GROUP_FUNC_USE: int
|
| 114 |
+
UNSUPPORTED_EXTENSION: int
|
| 115 |
+
TABLE_MUST_HAVE_COLUMNS: int
|
| 116 |
+
RECORD_FILE_FULL: int
|
| 117 |
+
UNKNOWN_CHARACTER_SET: int
|
| 118 |
+
TOO_MANY_TABLES: int
|
| 119 |
+
TOO_MANY_FIELDS: int
|
| 120 |
+
TOO_BIG_ROWSIZE: int
|
| 121 |
+
STACK_OVERRUN: int
|
| 122 |
+
WRONG_OUTER_JOIN: int
|
| 123 |
+
NULL_COLUMN_IN_INDEX: int
|
| 124 |
+
CANT_FIND_UDF: int
|
| 125 |
+
CANT_INITIALIZE_UDF: int
|
| 126 |
+
UDF_NO_PATHS: int
|
| 127 |
+
UDF_EXISTS: int
|
| 128 |
+
CANT_OPEN_LIBRARY: int
|
| 129 |
+
CANT_FIND_DL_ENTRY: int
|
| 130 |
+
FUNCTION_NOT_DEFINED: int
|
| 131 |
+
HOST_IS_BLOCKED: int
|
| 132 |
+
HOST_NOT_PRIVILEGED: int
|
| 133 |
+
PASSWORD_ANONYMOUS_USER: int
|
| 134 |
+
PASSWORD_NOT_ALLOWED: int
|
| 135 |
+
PASSWORD_NO_MATCH: int
|
| 136 |
+
UPDATE_INFO: int
|
| 137 |
+
CANT_CREATE_THREAD: int
|
| 138 |
+
WRONG_VALUE_COUNT_ON_ROW: int
|
| 139 |
+
CANT_REOPEN_TABLE: int
|
| 140 |
+
INVALID_USE_OF_NULL: int
|
| 141 |
+
REGEXP_ERROR: int
|
| 142 |
+
MIX_OF_GROUP_FUNC_AND_FIELDS: int
|
| 143 |
+
NONEXISTING_GRANT: int
|
| 144 |
+
TABLEACCESS_DENIED_ERROR: int
|
| 145 |
+
COLUMNACCESS_DENIED_ERROR: int
|
| 146 |
+
ILLEGAL_GRANT_FOR_TABLE: int
|
| 147 |
+
GRANT_WRONG_HOST_OR_USER: int
|
| 148 |
+
NO_SUCH_TABLE: int
|
| 149 |
+
NONEXISTING_TABLE_GRANT: int
|
| 150 |
+
NOT_ALLOWED_COMMAND: int
|
| 151 |
+
SYNTAX_ERROR: int
|
| 152 |
+
DELAYED_CANT_CHANGE_LOCK: int
|
| 153 |
+
TOO_MANY_DELAYED_THREADS: int
|
| 154 |
+
ABORTING_CONNECTION: int
|
| 155 |
+
NET_PACKET_TOO_LARGE: int
|
| 156 |
+
NET_READ_ERROR_FROM_PIPE: int
|
| 157 |
+
NET_FCNTL_ERROR: int
|
| 158 |
+
NET_PACKETS_OUT_OF_ORDER: int
|
| 159 |
+
NET_UNCOMPRESS_ERROR: int
|
| 160 |
+
NET_READ_ERROR: int
|
| 161 |
+
NET_READ_INTERRUPTED: int
|
| 162 |
+
NET_ERROR_ON_WRITE: int
|
| 163 |
+
NET_WRITE_INTERRUPTED: int
|
| 164 |
+
TOO_LONG_STRING: int
|
| 165 |
+
TABLE_CANT_HANDLE_BLOB: int
|
| 166 |
+
TABLE_CANT_HANDLE_AUTO_INCREMENT: int
|
| 167 |
+
DELAYED_INSERT_TABLE_LOCKED: int
|
| 168 |
+
WRONG_COLUMN_NAME: int
|
| 169 |
+
WRONG_KEY_COLUMN: int
|
| 170 |
+
WRONG_MRG_TABLE: int
|
| 171 |
+
DUP_UNIQUE: int
|
| 172 |
+
BLOB_KEY_WITHOUT_LENGTH: int
|
| 173 |
+
PRIMARY_CANT_HAVE_NULL: int
|
| 174 |
+
TOO_MANY_ROWS: int
|
| 175 |
+
REQUIRES_PRIMARY_KEY: int
|
| 176 |
+
NO_RAID_COMPILED: int
|
| 177 |
+
UPDATE_WITHOUT_KEY_IN_SAFE_MODE: int
|
| 178 |
+
KEY_DOES_NOT_EXITS: int
|
| 179 |
+
CHECK_NO_SUCH_TABLE: int
|
| 180 |
+
CHECK_NOT_IMPLEMENTED: int
|
| 181 |
+
CANT_DO_THIS_DURING_AN_TRANSACTION: int
|
| 182 |
+
ERROR_DURING_COMMIT: int
|
| 183 |
+
ERROR_DURING_ROLLBACK: int
|
| 184 |
+
ERROR_DURING_FLUSH_LOGS: int
|
| 185 |
+
ERROR_DURING_CHECKPOINT: int
|
| 186 |
+
NEW_ABORTING_CONNECTION: int
|
| 187 |
+
DUMP_NOT_IMPLEMENTED: int
|
| 188 |
+
FLUSH_MASTER_BINLOG_CLOSED: int
|
| 189 |
+
INDEX_REBUILD: int
|
| 190 |
+
MASTER: int
|
| 191 |
+
MASTER_NET_READ: int
|
| 192 |
+
MASTER_NET_WRITE: int
|
| 193 |
+
FT_MATCHING_KEY_NOT_FOUND: int
|
| 194 |
+
LOCK_OR_ACTIVE_TRANSACTION: int
|
| 195 |
+
UNKNOWN_SYSTEM_VARIABLE: int
|
| 196 |
+
CRASHED_ON_USAGE: int
|
| 197 |
+
CRASHED_ON_REPAIR: int
|
| 198 |
+
WARNING_NOT_COMPLETE_ROLLBACK: int
|
| 199 |
+
TRANS_CACHE_FULL: int
|
| 200 |
+
SLAVE_MUST_STOP: int
|
| 201 |
+
SLAVE_NOT_RUNNING: int
|
| 202 |
+
BAD_SLAVE: int
|
| 203 |
+
MASTER_INFO: int
|
| 204 |
+
SLAVE_THREAD: int
|
| 205 |
+
TOO_MANY_USER_CONNECTIONS: int
|
| 206 |
+
SET_CONSTANTS_ONLY: int
|
| 207 |
+
LOCK_WAIT_TIMEOUT: int
|
| 208 |
+
LOCK_TABLE_FULL: int
|
| 209 |
+
READ_ONLY_TRANSACTION: int
|
| 210 |
+
DROP_DB_WITH_READ_LOCK: int
|
| 211 |
+
CREATE_DB_WITH_READ_LOCK: int
|
| 212 |
+
WRONG_ARGUMENTS: int
|
| 213 |
+
NO_PERMISSION_TO_CREATE_USER: int
|
| 214 |
+
UNION_TABLES_IN_DIFFERENT_DIR: int
|
| 215 |
+
LOCK_DEADLOCK: int
|
| 216 |
+
TABLE_CANT_HANDLE_FT: int
|
| 217 |
+
CANNOT_ADD_FOREIGN: int
|
| 218 |
+
NO_REFERENCED_ROW: int
|
| 219 |
+
ROW_IS_REFERENCED: int
|
| 220 |
+
CONNECT_TO_MASTER: int
|
| 221 |
+
QUERY_ON_MASTER: int
|
| 222 |
+
ERROR_WHEN_EXECUTING_COMMAND: int
|
| 223 |
+
WRONG_USAGE: int
|
| 224 |
+
WRONG_NUMBER_OF_COLUMNS_IN_SELECT: int
|
| 225 |
+
CANT_UPDATE_WITH_READLOCK: int
|
| 226 |
+
MIXING_NOT_ALLOWED: int
|
| 227 |
+
DUP_ARGUMENT: int
|
| 228 |
+
USER_LIMIT_REACHED: int
|
| 229 |
+
SPECIFIC_ACCESS_DENIED_ERROR: int
|
| 230 |
+
LOCAL_VARIABLE: int
|
| 231 |
+
GLOBAL_VARIABLE: int
|
| 232 |
+
NO_DEFAULT: int
|
| 233 |
+
WRONG_VALUE_FOR_VAR: int
|
| 234 |
+
WRONG_TYPE_FOR_VAR: int
|
| 235 |
+
VAR_CANT_BE_READ: int
|
| 236 |
+
CANT_USE_OPTION_HERE: int
|
| 237 |
+
NOT_SUPPORTED_YET: int
|
| 238 |
+
MASTER_FATAL_ERROR_READING_BINLOG: int
|
| 239 |
+
SLAVE_IGNORED_TABLE: int
|
| 240 |
+
INCORRECT_GLOBAL_LOCAL_VAR: int
|
| 241 |
+
WRONG_FK_DEF: int
|
| 242 |
+
KEY_REF_DO_NOT_MATCH_TABLE_REF: int
|
| 243 |
+
OPERAND_COLUMNS: int
|
| 244 |
+
SUBQUERY_NO_1_ROW: int
|
| 245 |
+
UNKNOWN_STMT_HANDLER: int
|
| 246 |
+
CORRUPT_HELP_DB: int
|
| 247 |
+
CYCLIC_REFERENCE: int
|
| 248 |
+
AUTO_CONVERT: int
|
| 249 |
+
ILLEGAL_REFERENCE: int
|
| 250 |
+
DERIVED_MUST_HAVE_ALIAS: int
|
| 251 |
+
SELECT_REDUCED: int
|
| 252 |
+
TABLENAME_NOT_ALLOWED_HERE: int
|
| 253 |
+
NOT_SUPPORTED_AUTH_MODE: int
|
| 254 |
+
SPATIAL_CANT_HAVE_NULL: int
|
| 255 |
+
COLLATION_CHARSET_MISMATCH: int
|
| 256 |
+
SLAVE_WAS_RUNNING: int
|
| 257 |
+
SLAVE_WAS_NOT_RUNNING: int
|
| 258 |
+
TOO_BIG_FOR_UNCOMPRESS: int
|
| 259 |
+
ZLIB_Z_MEM_ERROR: int
|
| 260 |
+
ZLIB_Z_BUF_ERROR: int
|
| 261 |
+
ZLIB_Z_DATA_ERROR: int
|
| 262 |
+
CUT_VALUE_GROUP_CONCAT: int
|
| 263 |
+
WARN_TOO_FEW_RECORDS: int
|
| 264 |
+
WARN_TOO_MANY_RECORDS: int
|
| 265 |
+
WARN_NULL_TO_NOTNULL: int
|
| 266 |
+
WARN_DATA_OUT_OF_RANGE: int
|
| 267 |
+
WARN_DATA_TRUNCATED: int
|
| 268 |
+
WARN_USING_OTHER_HANDLER: int
|
| 269 |
+
CANT_AGGREGATE_2COLLATIONS: int
|
| 270 |
+
DROP_USER: int
|
| 271 |
+
REVOKE_GRANTS: int
|
| 272 |
+
CANT_AGGREGATE_3COLLATIONS: int
|
| 273 |
+
CANT_AGGREGATE_NCOLLATIONS: int
|
| 274 |
+
VARIABLE_IS_NOT_STRUCT: int
|
| 275 |
+
UNKNOWN_COLLATION: int
|
| 276 |
+
SLAVE_IGNORED_SSL_PARAMS: int
|
| 277 |
+
SERVER_IS_IN_SECURE_AUTH_MODE: int
|
| 278 |
+
WARN_FIELD_RESOLVED: int
|
| 279 |
+
BAD_SLAVE_UNTIL_COND: int
|
| 280 |
+
MISSING_SKIP_SLAVE: int
|
| 281 |
+
UNTIL_COND_IGNORED: int
|
| 282 |
+
WRONG_NAME_FOR_INDEX: int
|
| 283 |
+
WRONG_NAME_FOR_CATALOG: int
|
| 284 |
+
WARN_QC_RESIZE: int
|
| 285 |
+
BAD_FT_COLUMN: int
|
| 286 |
+
UNKNOWN_KEY_CACHE: int
|
| 287 |
+
WARN_HOSTNAME_WONT_WORK: int
|
| 288 |
+
UNKNOWN_STORAGE_ENGINE: int
|
| 289 |
+
WARN_DEPRECATED_SYNTAX: int
|
| 290 |
+
NON_UPDATABLE_TABLE: int
|
| 291 |
+
FEATURE_DISABLED: int
|
| 292 |
+
OPTION_PREVENTS_STATEMENT: int
|
| 293 |
+
DUPLICATED_VALUE_IN_TYPE: int
|
| 294 |
+
TRUNCATED_WRONG_VALUE: int
|
| 295 |
+
TOO_MUCH_AUTO_TIMESTAMP_COLS: int
|
| 296 |
+
INVALID_ON_UPDATE: int
|
| 297 |
+
UNSUPPORTED_PS: int
|
| 298 |
+
GET_ERRMSG: int
|
| 299 |
+
GET_TEMPORARY_ERRMSG: int
|
| 300 |
+
UNKNOWN_TIME_ZONE: int
|
| 301 |
+
WARN_INVALID_TIMESTAMP: int
|
| 302 |
+
INVALID_CHARACTER_STRING: int
|
| 303 |
+
WARN_ALLOWED_PACKET_OVERFLOWED: int
|
| 304 |
+
CONFLICTING_DECLARATIONS: int
|
| 305 |
+
SP_NO_RECURSIVE_CREATE: int
|
| 306 |
+
SP_ALREADY_EXISTS: int
|
| 307 |
+
SP_DOES_NOT_EXIST: int
|
| 308 |
+
SP_DROP_FAILED: int
|
| 309 |
+
SP_STORE_FAILED: int
|
| 310 |
+
SP_LILABEL_MISMATCH: int
|
| 311 |
+
SP_LABEL_REDEFINE: int
|
| 312 |
+
SP_LABEL_MISMATCH: int
|
| 313 |
+
SP_UNINIT_VAR: int
|
| 314 |
+
SP_BADSELECT: int
|
| 315 |
+
SP_BADRETURN: int
|
| 316 |
+
SP_BADSTATEMENT: int
|
| 317 |
+
UPDATE_LOG_DEPRECATED_IGNORED: int
|
| 318 |
+
UPDATE_LOG_DEPRECATED_TRANSLATED: int
|
| 319 |
+
QUERY_INTERRUPTED: int
|
| 320 |
+
SP_WRONG_NO_OF_ARGS: int
|
| 321 |
+
SP_COND_MISMATCH: int
|
| 322 |
+
SP_NORETURN: int
|
| 323 |
+
SP_NORETURNEND: int
|
| 324 |
+
SP_BAD_CURSOR_QUERY: int
|
| 325 |
+
SP_BAD_CURSOR_SELECT: int
|
| 326 |
+
SP_CURSOR_MISMATCH: int
|
| 327 |
+
SP_CURSOR_ALREADY_OPEN: int
|
| 328 |
+
SP_CURSOR_NOT_OPEN: int
|
| 329 |
+
SP_UNDECLARED_VAR: int
|
| 330 |
+
SP_WRONG_NO_OF_FETCH_ARGS: int
|
| 331 |
+
SP_FETCH_NO_DATA: int
|
| 332 |
+
SP_DUP_PARAM: int
|
| 333 |
+
SP_DUP_VAR: int
|
| 334 |
+
SP_DUP_COND: int
|
| 335 |
+
SP_DUP_CURS: int
|
| 336 |
+
SP_CANT_ALTER: int
|
| 337 |
+
SP_SUBSELECT_NYI: int
|
| 338 |
+
STMT_NOT_ALLOWED_IN_SF_OR_TRG: int
|
| 339 |
+
SP_VARCOND_AFTER_CURSHNDLR: int
|
| 340 |
+
SP_CURSOR_AFTER_HANDLER: int
|
| 341 |
+
SP_CASE_NOT_FOUND: int
|
| 342 |
+
FPARSER_TOO_BIG_FILE: int
|
| 343 |
+
FPARSER_BAD_HEADER: int
|
| 344 |
+
FPARSER_EOF_IN_COMMENT: int
|
| 345 |
+
FPARSER_ERROR_IN_PARAMETER: int
|
| 346 |
+
FPARSER_EOF_IN_UNKNOWN_PARAMETER: int
|
| 347 |
+
VIEW_NO_EXPLAIN: int
|
| 348 |
+
FRM_UNKNOWN_TYPE: int
|
| 349 |
+
WRONG_OBJECT: int
|
| 350 |
+
NONUPDATEABLE_COLUMN: int
|
| 351 |
+
VIEW_SELECT_DERIVED: int
|
| 352 |
+
VIEW_SELECT_CLAUSE: int
|
| 353 |
+
VIEW_SELECT_VARIABLE: int
|
| 354 |
+
VIEW_SELECT_TMPTABLE: int
|
| 355 |
+
VIEW_WRONG_LIST: int
|
| 356 |
+
WARN_VIEW_MERGE: int
|
| 357 |
+
WARN_VIEW_WITHOUT_KEY: int
|
| 358 |
+
VIEW_INVALID: int
|
| 359 |
+
SP_NO_DROP_SP: int
|
| 360 |
+
SP_GOTO_IN_HNDLR: int
|
| 361 |
+
TRG_ALREADY_EXISTS: int
|
| 362 |
+
TRG_DOES_NOT_EXIST: int
|
| 363 |
+
TRG_ON_VIEW_OR_TEMP_TABLE: int
|
| 364 |
+
TRG_CANT_CHANGE_ROW: int
|
| 365 |
+
TRG_NO_SUCH_ROW_IN_TRG: int
|
| 366 |
+
NO_DEFAULT_FOR_FIELD: int
|
| 367 |
+
DIVISION_BY_ZERO: int
|
| 368 |
+
TRUNCATED_WRONG_VALUE_FOR_FIELD: int
|
| 369 |
+
ILLEGAL_VALUE_FOR_TYPE: int
|
| 370 |
+
VIEW_NONUPD_CHECK: int
|
| 371 |
+
VIEW_CHECK_FAILED: int
|
| 372 |
+
PROCACCESS_DENIED_ERROR: int
|
| 373 |
+
RELAY_LOG_FAIL: int
|
| 374 |
+
PASSWD_LENGTH: int
|
| 375 |
+
UNKNOWN_TARGET_BINLOG: int
|
| 376 |
+
IO_ERR_LOG_INDEX_READ: int
|
| 377 |
+
BINLOG_PURGE_PROHIBITED: int
|
| 378 |
+
FSEEK_FAIL: int
|
| 379 |
+
BINLOG_PURGE_FATAL_ERR: int
|
| 380 |
+
LOG_IN_USE: int
|
| 381 |
+
LOG_PURGE_UNKNOWN_ERR: int
|
| 382 |
+
RELAY_LOG_INIT: int
|
| 383 |
+
NO_BINARY_LOGGING: int
|
| 384 |
+
RESERVED_SYNTAX: int
|
| 385 |
+
WSAS_FAILED: int
|
| 386 |
+
DIFF_GROUPS_PROC: int
|
| 387 |
+
NO_GROUP_FOR_PROC: int
|
| 388 |
+
ORDER_WITH_PROC: int
|
| 389 |
+
LOGGING_PROHIBIT_CHANGING_OF: int
|
| 390 |
+
NO_FILE_MAPPING: int
|
| 391 |
+
WRONG_MAGIC: int
|
| 392 |
+
PS_MANY_PARAM: int
|
| 393 |
+
KEY_PART_0: int
|
| 394 |
+
VIEW_CHECKSUM: int
|
| 395 |
+
VIEW_MULTIUPDATE: int
|
| 396 |
+
VIEW_NO_INSERT_FIELD_LIST: int
|
| 397 |
+
VIEW_DELETE_MERGE_VIEW: int
|
| 398 |
+
CANNOT_USER: int
|
| 399 |
+
XAER_NOTA: int
|
| 400 |
+
XAER_INVAL: int
|
| 401 |
+
XAER_RMFAIL: int
|
| 402 |
+
XAER_OUTSIDE: int
|
| 403 |
+
XAER_RMERR: int
|
| 404 |
+
XA_RBROLLBACK: int
|
| 405 |
+
NONEXISTING_PROC_GRANT: int
|
| 406 |
+
PROC_AUTO_GRANT_FAIL: int
|
| 407 |
+
PROC_AUTO_REVOKE_FAIL: int
|
| 408 |
+
DATA_TOO_LONG: int
|
| 409 |
+
SP_BAD_SQLSTATE: int
|
| 410 |
+
STARTUP: int
|
| 411 |
+
LOAD_FROM_FIXED_SIZE_ROWS_TO_VAR: int
|
| 412 |
+
CANT_CREATE_USER_WITH_GRANT: int
|
| 413 |
+
WRONG_VALUE_FOR_TYPE: int
|
| 414 |
+
TABLE_DEF_CHANGED: int
|
| 415 |
+
SP_DUP_HANDLER: int
|
| 416 |
+
SP_NOT_VAR_ARG: int
|
| 417 |
+
SP_NO_RETSET: int
|
| 418 |
+
CANT_CREATE_GEOMETRY_OBJECT: int
|
| 419 |
+
FAILED_ROUTINE_BREAK_BINLOG: int
|
| 420 |
+
BINLOG_UNSAFE_ROUTINE: int
|
| 421 |
+
BINLOG_CREATE_ROUTINE_NEED_SUPER: int
|
| 422 |
+
EXEC_STMT_WITH_OPEN_CURSOR: int
|
| 423 |
+
STMT_HAS_NO_OPEN_CURSOR: int
|
| 424 |
+
COMMIT_NOT_ALLOWED_IN_SF_OR_TRG: int
|
| 425 |
+
NO_DEFAULT_FOR_VIEW_FIELD: int
|
| 426 |
+
SP_NO_RECURSION: int
|
| 427 |
+
TOO_BIG_SCALE: int
|
| 428 |
+
TOO_BIG_PRECISION: int
|
| 429 |
+
M_BIGGER_THAN_D: int
|
| 430 |
+
WRONG_LOCK_OF_SYSTEM_TABLE: int
|
| 431 |
+
CONNECT_TO_FOREIGN_DATA_SOURCE: int
|
| 432 |
+
QUERY_ON_FOREIGN_DATA_SOURCE: int
|
| 433 |
+
FOREIGN_DATA_SOURCE_DOESNT_EXIST: int
|
| 434 |
+
FOREIGN_DATA_STRING_INVALID_CANT_CREATE: int
|
| 435 |
+
FOREIGN_DATA_STRING_INVALID: int
|
| 436 |
+
CANT_CREATE_FEDERATED_TABLE: int
|
| 437 |
+
TRG_IN_WRONG_SCHEMA: int
|
| 438 |
+
STACK_OVERRUN_NEED_MORE: int
|
| 439 |
+
TOO_LONG_BODY: int
|
| 440 |
+
WARN_CANT_DROP_DEFAULT_KEYCACHE: int
|
| 441 |
+
TOO_BIG_DISPLAYWIDTH: int
|
| 442 |
+
XAER_DUPID: int
|
| 443 |
+
DATETIME_FUNCTION_OVERFLOW: int
|
| 444 |
+
CANT_UPDATE_USED_TABLE_IN_SF_OR_TRG: int
|
| 445 |
+
VIEW_PREVENT_UPDATE: int
|
| 446 |
+
PS_NO_RECURSION: int
|
| 447 |
+
SP_CANT_SET_AUTOCOMMIT: int
|
| 448 |
+
MALFORMED_DEFINER: int
|
| 449 |
+
VIEW_FRM_NO_USER: int
|
| 450 |
+
VIEW_OTHER_USER: int
|
| 451 |
+
NO_SUCH_USER: int
|
| 452 |
+
FORBID_SCHEMA_CHANGE: int
|
| 453 |
+
ROW_IS_REFERENCED_2: int
|
| 454 |
+
NO_REFERENCED_ROW_2: int
|
| 455 |
+
SP_BAD_VAR_SHADOW: int
|
| 456 |
+
TRG_NO_DEFINER: int
|
| 457 |
+
OLD_FILE_FORMAT: int
|
| 458 |
+
SP_RECURSION_LIMIT: int
|
| 459 |
+
SP_PROC_TABLE_CORRUPT: int
|
| 460 |
+
SP_WRONG_NAME: int
|
| 461 |
+
TABLE_NEEDS_UPGRADE: int
|
| 462 |
+
SP_NO_AGGREGATE: int
|
| 463 |
+
MAX_PREPARED_STMT_COUNT_REACHED: int
|
| 464 |
+
VIEW_RECURSIVE: int
|
| 465 |
+
NON_GROUPING_FIELD_USED: int
|
| 466 |
+
TABLE_CANT_HANDLE_SPKEYS: int
|
| 467 |
+
NO_TRIGGERS_ON_SYSTEM_SCHEMA: int
|
| 468 |
+
USERNAME: int
|
| 469 |
+
HOSTNAME: int
|
| 470 |
+
WRONG_STRING_LENGTH: int
|
| 471 |
+
ERROR_LAST: int
|
shared/package-files/d0/d0edee15f91b406f3f99726e44eb990be6e34fd0345b52b910c568e0eef6a2a8/blob
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
conda
|
shared/package-files/d0/d0eee1c38f9d55f010da652848b6e35986a448dcdcbfa07a9f20490913da8dda/blob
ADDED
|
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Usecases with Python 3 function annotations. This is a separate module
|
| 3 |
+
in order to avoid syntax errors with Python 2.
|
| 4 |
+
"""
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
class AnnotatedClass:
|
| 8 |
+
"""
|
| 9 |
+
A class with annotated methods.
|
| 10 |
+
"""
|
| 11 |
+
|
| 12 |
+
def __init__(self, v: int):
|
| 13 |
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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# mypy: ignore-errors
|
| 2 |
+
|
| 3 |
+
import torch.fx as fx
|
| 4 |
+
import copy
|
| 5 |
+
import torch
|
| 6 |
+
import math
|
| 7 |
+
import sys
|
| 8 |
+
from typing import Callable, List
|
| 9 |
+
from functools import wraps, partial
|
| 10 |
+
from dataclasses import dataclass
|
| 11 |
+
from .compile_utils import get_placeholders, get_outputs
|
| 12 |
+
from torch.utils._content_store import ContentStoreWriter
|
| 13 |
+
from torch.hub import tqdm
|
| 14 |
+
from torch.multiprocessing.reductions import StorageWeakRef
|
| 15 |
+
import os
|
| 16 |
+
|
| 17 |
+
is_tuple = object()
|
| 18 |
+
|
| 19 |
+
@dataclass
|
| 20 |
+
class LoadTensorMeta:
|
| 21 |
+
size: List[int]
|
| 22 |
+
stride: List[int]
|
| 23 |
+
dtype: torch.dtype
|
| 24 |
+
device: torch.device
|
| 25 |
+
|
| 26 |
+
class ConcreteProp(torch.fx.Interpreter):
|
| 27 |
+
def __init__(self, mod, *, writer=None, skip_offload=False):
|
| 28 |
+
super().__init__(mod)
|
| 29 |
+
self.writer = writer
|
| 30 |
+
self.skip_offload = skip_offload
|
| 31 |
+
self.seen_storages = set()
|
| 32 |
+
|
| 33 |
+
def run_node(self, n):
|
| 34 |
+
self.pbar.update(1)
|
| 35 |
+
r = super().run_node(n)
|
| 36 |
+
name = n.name
|
| 37 |
+
|
| 38 |
+
if isinstance(r, torch.Tensor):
|
| 39 |
+
if self.writer is None:
|
| 40 |
+
n.meta['concrete_value'] = r
|
| 41 |
+
else:
|
| 42 |
+
if StorageWeakRef(r.untyped_storage()) in self.seen_storages:
|
| 43 |
+
# Refuse to offload tensors which alias other live
|
| 44 |
+
# tensors, because this will violate operator contracts
|
| 45 |
+
n.meta['concrete_value'] = None
|
| 46 |
+
else:
|
| 47 |
+
if not self.skip_offload:
|
| 48 |
+
self.writer.write_tensor(os.path.join("eager", name), r)
|
| 49 |
+
n.meta['concrete_value'] = LoadTensorMeta(
|
| 50 |
+
r.size(),
|
| 51 |
+
r.stride(),
|
| 52 |
+
r.dtype,
|
| 53 |
+
r.device
|
| 54 |
+
)
|
| 55 |
+
self.seen_storages.add(StorageWeakRef(r.untyped_storage()))
|
| 56 |
+
else:
|
| 57 |
+
n.meta['concrete_value'] = is_tuple
|
| 58 |
+
|
| 59 |
+
return r
|
| 60 |
+
|
| 61 |
+
def propagate(self, *args):
|
| 62 |
+
with tqdm(
|
| 63 |
+
desc="Saving intermediates for delta debugging",
|
| 64 |
+
total=len(self.module.graph.nodes),
|
| 65 |
+
disable=self.writer is None
|
| 66 |
+
) as pbar:
|
| 67 |
+
self.pbar = pbar
|
| 68 |
+
r = super().run(*args)
|
| 69 |
+
if not self.skip_offload:
|
| 70 |
+
pbar.set_description("Saved! To skip next time, run with --skip-saving-eager-intermediates")
|
| 71 |
+
return r
|
| 72 |
+
|
| 73 |
+
def is_load_tensor_node(node):
|
| 74 |
+
return node.op == 'call_function' and node.target is torch.ops.debugprims.load_tensor.default
|
| 75 |
+
|
| 76 |
+
|
| 77 |
+
# inplace modifies node/inps
|
| 78 |
+
def _convert_node_to_placeholder(graph, node, inps):
|
| 79 |
+
if node.op == 'output' or node.op == "placeholder":
|
| 80 |
+
return False
|
| 81 |
+
|
| 82 |
+
if is_load_tensor_node(node):
|
| 83 |
+
return False
|
| 84 |
+
|
| 85 |
+
concrete_val = node.meta.get('concrete_value', None)
|
| 86 |
+
|
| 87 |
+
if isinstance(concrete_val, torch.Tensor):
|
| 88 |
+
node.op = 'placeholder'
|
| 89 |
+
node.target = node.name
|
| 90 |
+
node.args = ()
|
| 91 |
+
node.kwargs = {}
|
| 92 |
+
|
| 93 |
+
inps.append(concrete_val)
|
| 94 |
+
return True
|
| 95 |
+
|
| 96 |
+
elif concrete_val is None:
|
| 97 |
+
return False
|
| 98 |
+
|
| 99 |
+
elif concrete_val is is_tuple:
|
| 100 |
+
r = False
|
| 101 |
+
for tuple_user in list(node.users):
|
| 102 |
+
r = _convert_node_to_placeholder(graph, tuple_user, inps) or r
|
| 103 |
+
# NB: We must not erase the node at this point, because
|
| 104 |
+
# we are iterating over the nodes and this would change
|
| 105 |
+
# the iteration order
|
| 106 |
+
# graph.erase_node(node)
|
| 107 |
+
return r
|
| 108 |
+
|
| 109 |
+
elif isinstance(concrete_val, LoadTensorMeta):
|
| 110 |
+
node.op = 'call_function'
|
| 111 |
+
node.target = torch.ops.debugprims.load_tensor.default
|
| 112 |
+
node.args = (os.path.join("eager", node.name), concrete_val.size, concrete_val.stride)
|
| 113 |
+
node.kwargs = {
|
| 114 |
+
'device': concrete_val.device,
|
| 115 |
+
'dtype': concrete_val.dtype,
|
| 116 |
+
}
|
| 117 |
+
return True
|
| 118 |
+
|
| 119 |
+
return False
|
| 120 |
+
|
| 121 |
+
def create_minified_hlo_graph(minified_fx_graph, inputs):
|
| 122 |
+
"""
|
| 123 |
+
Takes minified FX graph as primary input, and ports it to HLO via StableHLO
|
| 124 |
+
Provides minified HLO graph as output, and archive them to local directory
|
| 125 |
+
"""
|
| 126 |
+
hlo_dir = f"{os.getcwd()}/hlo_files"
|
| 127 |
+
os.makedirs(hlo_dir, exists_ok=True)
|
| 128 |
+
|
| 129 |
+
from torch_xla.stablehlo import save_torch_model_as_stablehlo
|
| 130 |
+
save_torch_model_as_stablehlo(minified_fx_graph, inputs, hlo_dir)
|
| 131 |
+
|
| 132 |
+
def dump_state(fx_g, inps):
|
| 133 |
+
print(f"""
|
| 134 |
+
# Working Repro with {len(fx_g.graph.nodes)} nodes
|
| 135 |
+
inps = {[(i.shape, i.dtype, i.device.type) for i in inps]}
|
| 136 |
+
inps = [torch.zeros(())] + [torch.ones(shape, dtype=dtype, device=device) for (shape, dtype, device) in inps]
|
| 137 |
+
{fx_g.code}
|
| 138 |
+
""")
|
| 139 |
+
|
| 140 |
+
def is_power_of_two(n):
|
| 141 |
+
if n == 0:
|
| 142 |
+
return False
|
| 143 |
+
return (n & (n - 1)) == 0
|
| 144 |
+
|
| 145 |
+
@dataclass
|
| 146 |
+
class ReproState:
|
| 147 |
+
graph: fx.Graph
|
| 148 |
+
inps: List[torch.Tensor]
|
| 149 |
+
|
| 150 |
+
def __post_init__(self):
|
| 151 |
+
ph_nodes = get_placeholders(self.graph)
|
| 152 |
+
assert len(ph_nodes) == len(self.inps)
|
| 153 |
+
|
| 154 |
+
def minifier(
|
| 155 |
+
fail_f: fx.GraphModule, inps, module_fails, dump_state: Callable = dump_state, *,
|
| 156 |
+
save_dir=None, offload_to_disk=False, skip_offload=False, skip_sanity=False,
|
| 157 |
+
max_granularity=None
|
| 158 |
+
):
|
| 159 |
+
"""
|
| 160 |
+
Minimizes a FX graph with given inputs, such that the resulting FX graph still returns True for module_fails.
|
| 161 |
+
|
| 162 |
+
Does 2 main strategies:
|
| 163 |
+
1. Truncates suffix: Removes some suffix from the graph and sets a new output.
|
| 164 |
+
2. Delta Debugging: Tries replacing half of the graph with inputs. If fails,
|
| 165 |
+
tries replacing quarter of the graph, etc.
|
| 166 |
+
|
| 167 |
+
>>> # xdoctest: +SKIP(failing)
|
| 168 |
+
>>> failing_function = fx.symbolic_trace(f)
|
| 169 |
+
>>> minimize(failing_function, [torch.randn(5)], lambda fx_g, inps: fx_g(*inps))
|
| 170 |
+
|
| 171 |
+
note: module_fails returns True if it fails.
|
| 172 |
+
"""
|
| 173 |
+
assert isinstance(inps, (tuple, list))
|
| 174 |
+
|
| 175 |
+
failing_graph = fail_f.graph
|
| 176 |
+
cur_size = len(failing_graph.nodes)
|
| 177 |
+
|
| 178 |
+
if max_granularity is not None and not is_power_of_two(max_granularity):
|
| 179 |
+
raise RuntimeError(f"max_granularity {max_granularity} not power of two")
|
| 180 |
+
|
| 181 |
+
num_queries = 0
|
| 182 |
+
|
| 183 |
+
def deepcopy_fx_graph(fx_graph):
|
| 184 |
+
return fx.GraphModule(fail_f, copy.deepcopy(fx_graph)).graph
|
| 185 |
+
|
| 186 |
+
|
| 187 |
+
def graph_fails(graph, inps):
|
| 188 |
+
nonlocal num_queries
|
| 189 |
+
graph = copy.deepcopy(graph)
|
| 190 |
+
num_queries += 1
|
| 191 |
+
mod = fx.GraphModule(fail_f, graph)
|
| 192 |
+
mod.graph.lint()
|
| 193 |
+
return module_fails(mod, inps)
|
| 194 |
+
|
| 195 |
+
writer = None
|
| 196 |
+
if offload_to_disk:
|
| 197 |
+
writer = ContentStoreWriter(save_dir)
|
| 198 |
+
|
| 199 |
+
ConcreteProp(fail_f, writer=writer, skip_offload=skip_offload).propagate(*inps)
|
| 200 |
+
if not skip_sanity and not graph_fails(failing_graph, inps):
|
| 201 |
+
raise RuntimeError("Input graph did not fail the tester")
|
| 202 |
+
print(f"Started off with {cur_size} nodes", file=sys.stderr)
|
| 203 |
+
|
| 204 |
+
def _register_strategy(strategy: Callable, name: str):
|
| 205 |
+
@wraps(strategy)
|
| 206 |
+
def new_func(old_state: ReproState, granularity=1):
|
| 207 |
+
print(file=sys.stderr)
|
| 208 |
+
print(
|
| 209 |
+
f"Strategy: {name} (G: {granularity}) "
|
| 210 |
+
f"({len(old_state.graph.nodes)} nodes, {len(old_state.inps)} inputs)",
|
| 211 |
+
file=sys.stderr
|
| 212 |
+
)
|
| 213 |
+
new_state = strategy(deepcopy_fx_graph(old_state.graph), list(old_state.inps), granularity)
|
| 214 |
+
if new_state is not None:
|
| 215 |
+
new_nodes = len(new_state.graph.nodes)
|
| 216 |
+
old_nodes = len(old_state.graph.nodes)
|
| 217 |
+
new_inps = len(new_state.inps)
|
| 218 |
+
old_inps = len(old_state.inps)
|
| 219 |
+
new_outs = len(get_outputs(new_state.graph))
|
| 220 |
+
old_outs = len(get_outputs(old_state.graph))
|
| 221 |
+
progress_made = False
|
| 222 |
+
if new_nodes < old_nodes:
|
| 223 |
+
progress_made = True
|
| 224 |
+
print(f"SUCCESS: Went from {old_nodes} to {new_nodes} nodes", file=sys.stderr)
|
| 225 |
+
if new_inps > old_inps:
|
| 226 |
+
progress_made = True
|
| 227 |
+
print(f"SUCCESS: Went from {old_inps} to {new_inps} inputs", file=sys.stderr)
|
| 228 |
+
if new_outs < old_outs:
|
| 229 |
+
progress_made = True
|
| 230 |
+
print(f"SUCCESS: Went from {old_outs} to {new_outs} outputs", file=sys.stderr)
|
| 231 |
+
|
| 232 |
+
if not progress_made:
|
| 233 |
+
raise RuntimeError("Success raised but no progress made?")
|
| 234 |
+
|
| 235 |
+
if not graph_fails(new_state.graph, new_state.inps):
|
| 236 |
+
print("WARNING: Something went wrong, not applying this minification", file=sys.stderr)
|
| 237 |
+
return None
|
| 238 |
+
return new_state
|
| 239 |
+
else:
|
| 240 |
+
print(f"FAIL: {name}", file=sys.stderr)
|
| 241 |
+
return None
|
| 242 |
+
|
| 243 |
+
return new_func
|
| 244 |
+
|
| 245 |
+
def register_strategy(name: str):
|
| 246 |
+
return partial(_register_strategy, name=name)
|
| 247 |
+
|
| 248 |
+
@register_strategy("Truncate suffix")
|
| 249 |
+
def remove_suffix(cur_graph, cur_inps, granularity):
|
| 250 |
+
tested = set()
|
| 251 |
+
new_graph = fx.Graph()
|
| 252 |
+
env = {}
|
| 253 |
+
for idx, node in enumerate(cur_graph.nodes):
|
| 254 |
+
new_node = new_graph.node_copy(node, lambda x: env[x])
|
| 255 |
+
if node.op not in ['placeholder', 'output']:
|
| 256 |
+
# If idx is divisible by (granularity * 2), it would have been checked already.
|
| 257 |
+
if idx % granularity == 0 and (idx % (granularity * 2) != 0) and idx not in tested:
|
| 258 |
+
output_node = new_graph.output((new_node,))
|
| 259 |
+
if len(new_graph.nodes) < len(cur_graph.nodes) and graph_fails(new_graph, cur_inps):
|
| 260 |
+
return ReproState(new_graph, cur_inps)
|
| 261 |
+
else:
|
| 262 |
+
tested.add(idx)
|
| 263 |
+
new_graph.erase_node(output_node)
|
| 264 |
+
env[node] = new_node
|
| 265 |
+
return None
|
| 266 |
+
|
| 267 |
+
@register_strategy("Remove outputs")
|
| 268 |
+
def remove_outputs(cur_graph, cur_inps, granularity):
|
| 269 |
+
granularity = max(1, granularity // 2)
|
| 270 |
+
for idx, node in enumerate(cur_graph.nodes):
|
| 271 |
+
node.idx = idx
|
| 272 |
+
if node.op == 'output':
|
| 273 |
+
output = node
|
| 274 |
+
break
|
| 275 |
+
|
| 276 |
+
if isinstance(output.args[0], fx.Node):
|
| 277 |
+
return None
|
| 278 |
+
|
| 279 |
+
output_args = sorted(output.args[0], key=lambda x: x.idx if isinstance(x, fx.Node) else int(1e9))
|
| 280 |
+
if len(output_args) == 1:
|
| 281 |
+
return None
|
| 282 |
+
|
| 283 |
+
for idx in range(0, len(output_args), granularity):
|
| 284 |
+
output.args = (output_args[:idx] + output_args[idx + granularity:],)
|
| 285 |
+
if graph_fails(cur_graph, cur_inps):
|
| 286 |
+
return ReproState(cur_graph, cur_inps)
|
| 287 |
+
return None
|
| 288 |
+
|
| 289 |
+
|
| 290 |
+
def remove_unused_inputs_unchecked(cur_state: ReproState):
|
| 291 |
+
cur_graph = cur_state.graph
|
| 292 |
+
cur_inps = cur_state.inps
|
| 293 |
+
ph_nodes = get_placeholders(cur_graph)
|
| 294 |
+
assert len(ph_nodes) == len(cur_inps)
|
| 295 |
+
|
| 296 |
+
new_inps = []
|
| 297 |
+
for idx in range(len(ph_nodes)):
|
| 298 |
+
if len(ph_nodes[idx].users) == 0:
|
| 299 |
+
cur_graph.erase_node(ph_nodes[idx])
|
| 300 |
+
else:
|
| 301 |
+
new_inps.append(cur_inps[idx])
|
| 302 |
+
if len(new_inps) < len(cur_inps):
|
| 303 |
+
return ReproState(cur_graph, new_inps)
|
| 304 |
+
return None
|
| 305 |
+
|
| 306 |
+
def remove_unused_inputs_checked(cur_state: ReproState):
|
| 307 |
+
new_state = remove_unused_inputs_unchecked(cur_state)
|
| 308 |
+
if new_state is not None and graph_fails(new_state.graph, new_state.inps):
|
| 309 |
+
return new_state
|
| 310 |
+
return None
|
| 311 |
+
|
| 312 |
+
def _remove_unused_wrapper(cur_graph, cur_inps, granularity):
|
| 313 |
+
return remove_unused_inputs_checked(ReproState(cur_graph, cur_inps))
|
| 314 |
+
|
| 315 |
+
remove_unused_inputs = register_strategy("Remove unused inputs")(_remove_unused_wrapper)
|
| 316 |
+
|
| 317 |
+
@register_strategy("Eliminate dead code")
|
| 318 |
+
def eliminate_dead_code(cur_graph, cur_inps, granularity):
|
| 319 |
+
if cur_graph.eliminate_dead_code() and graph_fails(cur_graph, cur_inps):
|
| 320 |
+
return ReproState(cur_graph, cur_inps)
|
| 321 |
+
return None
|
| 322 |
+
|
| 323 |
+
|
| 324 |
+
def _consolidate_placeholders(cur_graph, inps):
|
| 325 |
+
new_graph = fx.Graph()
|
| 326 |
+
env = {}
|
| 327 |
+
seen_non_placeholder = False
|
| 328 |
+
|
| 329 |
+
# Move all placeholders to the front; also, if any load_tensor
|
| 330 |
+
# is at the front, convert it into an input (because it can be live
|
| 331 |
+
# all the time)
|
| 332 |
+
for node in cur_graph.nodes:
|
| 333 |
+
if node.op == 'placeholder':
|
| 334 |
+
new_node = new_graph.node_copy(node, lambda x: env[x])
|
| 335 |
+
env[node] = new_node
|
| 336 |
+
elif not seen_non_placeholder and is_load_tensor_node(node):
|
| 337 |
+
new_node = new_graph.placeholder(node.name)
|
| 338 |
+
env[node] = new_node
|
| 339 |
+
inps.append(torch.ops.debugprims.load_tensor.default(*node.args, **node.kwargs))
|
| 340 |
+
else:
|
| 341 |
+
seen_non_placeholder = True
|
| 342 |
+
|
| 343 |
+
# Move everyone else
|
| 344 |
+
for node in cur_graph.nodes:
|
| 345 |
+
if node not in env:
|
| 346 |
+
new_node = new_graph.node_copy(node, lambda x: env[x])
|
| 347 |
+
env[node] = new_node
|
| 348 |
+
return new_graph
|
| 349 |
+
|
| 350 |
+
@register_strategy("Delta Debugging")
|
| 351 |
+
def delta_debugging(cur_graph: fx.Graph, cur_inps, granularity):
|
| 352 |
+
num_nodes = len(cur_graph.nodes)
|
| 353 |
+
for start_range in range(0, num_nodes, granularity):
|
| 354 |
+
is_removing = False
|
| 355 |
+
new_graph = deepcopy_fx_graph(cur_graph)
|
| 356 |
+
new_inps = cur_inps[:]
|
| 357 |
+
end_range = min(num_nodes, start_range + granularity)
|
| 358 |
+
for idx in range(start_range, end_range):
|
| 359 |
+
new_node = list(new_graph.nodes)[idx]
|
| 360 |
+
if _convert_node_to_placeholder(new_graph, new_node, new_inps):
|
| 361 |
+
is_removing = True
|
| 362 |
+
if not is_removing:
|
| 363 |
+
continue
|
| 364 |
+
new_graph.eliminate_dead_code()
|
| 365 |
+
new_graph = _consolidate_placeholders(new_graph, new_inps)
|
| 366 |
+
new_state = remove_unused_inputs_unchecked(ReproState(new_graph, new_inps))
|
| 367 |
+
if new_state is None:
|
| 368 |
+
new_state = ReproState(new_graph, new_inps)
|
| 369 |
+
if graph_fails(new_state.graph, new_state.inps):
|
| 370 |
+
return ReproState(new_state.graph, new_state.inps)
|
| 371 |
+
|
| 372 |
+
return None
|
| 373 |
+
|
| 374 |
+
@register_strategy("Consolidate Inputs")
|
| 375 |
+
def consolidate_inputs(cur_graph, cur_inps, granularity):
|
| 376 |
+
old_len = len(cur_inps)
|
| 377 |
+
cur_graph = _consolidate_placeholders(cur_graph, cur_inps)
|
| 378 |
+
if len(cur_inps) > old_len and graph_fails(cur_graph, cur_inps):
|
| 379 |
+
return ReproState(cur_graph, cur_inps)
|
| 380 |
+
return None
|
| 381 |
+
|
| 382 |
+
failing_state = ReproState(failing_graph, inps)
|
| 383 |
+
|
| 384 |
+
def try_granularity(failing_state, granularity, use_non_granular):
|
| 385 |
+
print(f"Trying granularity {granularity}", file=sys.stderr)
|
| 386 |
+
|
| 387 |
+
strategies = []
|
| 388 |
+
num_nodes = len(failing_state.graph.nodes)
|
| 389 |
+
num_outputs = len(get_outputs(failing_state.graph))
|
| 390 |
+
if num_outputs > num_nodes // 2:
|
| 391 |
+
strategies += [remove_outputs]
|
| 392 |
+
|
| 393 |
+
if use_non_granular:
|
| 394 |
+
strategies += [eliminate_dead_code, remove_unused_inputs, consolidate_inputs]
|
| 395 |
+
|
| 396 |
+
strategies += [remove_suffix, delta_debugging]
|
| 397 |
+
|
| 398 |
+
for strategy in strategies:
|
| 399 |
+
new_state = strategy(failing_state, granularity)
|
| 400 |
+
if new_state is not None:
|
| 401 |
+
return new_state
|
| 402 |
+
return None
|
| 403 |
+
|
| 404 |
+
while True:
|
| 405 |
+
dump_state(fx.GraphModule(fail_f, failing_state.graph), failing_state.inps)
|
| 406 |
+
granularity = int(2**(math.floor(math.log2(len(failing_state.graph.nodes)))))
|
| 407 |
+
if max_granularity is not None:
|
| 408 |
+
granularity = min(max_granularity, granularity)
|
| 409 |
+
new_state = try_granularity(failing_state, granularity, use_non_granular=True)
|
| 410 |
+
if new_state is not None:
|
| 411 |
+
failing_state = new_state
|
| 412 |
+
continue
|
| 413 |
+
|
| 414 |
+
granularity //= 2
|
| 415 |
+
has_progress = False
|
| 416 |
+
while granularity >= 1:
|
| 417 |
+
new_state = try_granularity(failing_state, granularity, use_non_granular=False)
|
| 418 |
+
if new_state is not None:
|
| 419 |
+
failing_state = new_state
|
| 420 |
+
has_progress = True
|
| 421 |
+
break
|
| 422 |
+
granularity //= 2
|
| 423 |
+
if has_progress:
|
| 424 |
+
continue
|
| 425 |
+
|
| 426 |
+
new_state = remove_outputs(failing_state, 1)
|
| 427 |
+
if new_state is not None:
|
| 428 |
+
failing_state = new_state
|
| 429 |
+
continue
|
| 430 |
+
|
| 431 |
+
break
|
| 432 |
+
|
| 433 |
+
if not graph_fails(failing_state.graph, failing_state.inps):
|
| 434 |
+
raise RuntimeError("Uh oh, something went wrong :( Final graph is not failing")
|
| 435 |
+
|
| 436 |
+
print(f"Made {num_queries} queries", file=sys.stderr)
|
| 437 |
+
failing_fx = fx.GraphModule(fail_f, failing_state.graph)
|
| 438 |
+
|
| 439 |
+
# If XLA debugging environment is enabled, create minified HLO graph as well
|
| 440 |
+
if "XLA_HLO_DEBUG" in os.environ:
|
| 441 |
+
create_minified_hlo_graph(failing_fx, failing_state.inps)
|
| 442 |
+
|
| 443 |
+
dump_state(failing_fx, failing_state.inps)
|
| 444 |
+
print("Wrote minimal repro out to repro.py", file=sys.stderr)
|
| 445 |
+
return failing_fx, failing_state.inps
|
shared/package-files/d0/d0f1d1961f5f7ac4eb6bc9c30d2a2160b021832f8a60da8d8dcf2073e2e870a9/blob
ADDED
|
Binary file (521 Bytes). View file
|
|
|
shared/package-files/d0/d0f23f94e7325c92a98105fd65fe54bb8affefb1a2349d30a6f979b899e0ca6c/blob
ADDED
|
Binary file (1.43 kB). View file
|
|
|
shared/package-files/d0/d0f3670ea2a4a2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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
dtype,input,output,ulperrortol
|
| 2 |
+
## +ve denormals ##
|
| 3 |
+
np.float32,0x004b4716,0x3f800000,2
|
| 4 |
+
np.float32,0x007b2490,0x3f800000,2
|
| 5 |
+
np.float32,0x007c99fa,0x3f800000,2
|
| 6 |
+
np.float32,0x00734a0c,0x3f800000,2
|
| 7 |
+
np.float32,0x0070de24,0x3f800000,2
|
| 8 |
+
np.float32,0x007fffff,0x3f800000,2
|
| 9 |
+
np.float32,0x00000001,0x3f800000,2
|
| 10 |
+
## -ve denormals ##
|
| 11 |
+
np.float32,0x80495d65,0x3f800000,2
|
| 12 |
+
np.float32,0x806894f6,0x3f800000,2
|
| 13 |
+
np.float32,0x80555a76,0x3f800000,2
|
| 14 |
+
np.float32,0x804e1fb8,0x3f800000,2
|
| 15 |
+
np.float32,0x80687de9,0x3f800000,2
|
| 16 |
+
np.float32,0x807fffff,0x3f800000,2
|
| 17 |
+
np.float32,0x80000001,0x3f800000,2
|
| 18 |
+
## +/-0.0f, +/-FLT_MIN +/-FLT_MAX ##
|
| 19 |
+
np.float32,0x00000000,0x3f800000,2
|
| 20 |
+
np.float32,0x80000000,0x3f800000,2
|
| 21 |
+
np.float32,0x00800000,0x3f800000,2
|
| 22 |
+
np.float32,0x80800000,0x3f800000,2
|
| 23 |
+
## 1.00f + 0x00000001 ##
|
| 24 |
+
np.float32,0x3f800000,0x3f0a5140,2
|
| 25 |
+
np.float32,0x3f800001,0x3f0a513f,2
|
| 26 |
+
np.float32,0x3f800002,0x3f0a513d,2
|
| 27 |
+
np.float32,0xc090a8b0,0xbe4332ce,2
|
| 28 |
+
np.float32,0x41ce3184,0x3f4d1de1,2
|
| 29 |
+
np.float32,0xc1d85848,0xbeaa8980,2
|
| 30 |
+
np.float32,0x402b8820,0xbf653aa3,2
|
| 31 |
+
np.float32,0x42b4e454,0xbf4a338b,2
|
| 32 |
+
np.float32,0x42a67a60,0x3c58202e,2
|
| 33 |
+
np.float32,0x41d92388,0xbed987c7,2
|
| 34 |
+
np.float32,0x422dd66c,0x3f5dcab3,2
|
| 35 |
+
np.float32,0xc28f5be6,0xbf5688d8,2
|
| 36 |
+
np.float32,0x41ab2674,0xbf53aa3b,2
|
| 37 |
+
np.float32,0x3f490fdb,0x3f3504f3,2
|
| 38 |
+
np.float32,0xbf490fdb,0x3f3504f3,2
|
| 39 |
+
np.float32,0x3fc90fdb,0xb33bbd2e,2
|
| 40 |
+
np.float32,0xbfc90fdb,0xb33bbd2e,2
|
| 41 |
+
np.float32,0x40490fdb,0xbf800000,2
|
| 42 |
+
np.float32,0xc0490fdb,0xbf800000,2
|
| 43 |
+
np.float32,0x3fc90fdb,0xb33bbd2e,2
|
| 44 |
+
np.float32,0xbfc90fdb,0xb33bbd2e,2
|
| 45 |
+
np.float32,0x40490fdb,0xbf800000,2
|
| 46 |
+
np.float32,0xc0490fdb,0xbf800000,2
|
| 47 |
+
np.float32,0x40c90fdb,0x3f800000,2
|
| 48 |
+
np.float32,0xc0c90fdb,0x3f800000,2
|
| 49 |
+
np.float32,0x4016cbe4,0xbf3504f3,2
|
| 50 |
+
np.float32,0xc016cbe4,0xbf3504f3,2
|
| 51 |
+
np.float32,0x4096cbe4,0x324cde2e,2
|
| 52 |
+
np.float32,0xc096cbe4,0x324cde2e,2
|
| 53 |
+
np.float32,0x4116cbe4,0xbf800000,2
|
| 54 |
+
np.float32,0xc116cbe4,0xbf800000,2
|
| 55 |
+
np.float32,0x40490fdb,0xbf800000,2
|
| 56 |
+
np.float32,0xc0490fdb,0xbf800000,2
|
| 57 |
+
np.float32,0x40c90fdb,0x3f800000,2
|
| 58 |
+
np.float32,0xc0c90fdb,0x3f800000,2
|
| 59 |
+
np.float32,0x41490fdb,0x3f800000,2
|
| 60 |
+
np.float32,0xc1490fdb,0x3f800000,2
|
| 61 |
+
np.float32,0x407b53d2,0xbf3504f1,2
|
| 62 |
+
np.float32,0xc07b53d2,0xbf3504f1,2
|
| 63 |
+
np.float32,0x40fb53d2,0xb4b5563d,2
|
| 64 |
+
np.float32,0xc0fb53d2,0xb4b5563d,2
|
| 65 |
+
np.float32,0x417b53d2,0xbf800000,2
|
| 66 |
+
np.float32,0xc17b53d2,0xbf800000,2
|
| 67 |
+
np.float32,0x4096cbe4,0x324cde2e,2
|
| 68 |
+
np.float32,0xc096cbe4,0x324cde2e,2
|
| 69 |
+
np.float32,0x4116cbe4,0xbf800000,2
|
| 70 |
+
np.float32,0xc116cbe4,0xbf800000,2
|
| 71 |
+
np.float32,0x4196cbe4,0x3f800000,2
|
| 72 |
+
np.float32,0xc196cbe4,0x3f800000,2
|
| 73 |
+
np.float32,0x40afede0,0x3f3504f7,2
|
| 74 |
+
np.float32,0xc0afede0,0x3f3504f7,2
|
| 75 |
+
np.float32,0x412fede0,0x353222c4,2
|
| 76 |
+
np.float32,0xc12fede0,0x353222c4,2
|
| 77 |
+
np.float32,0x41afede0,0xbf800000,2
|
| 78 |
+
np.float32,0xc1afede0,0xbf800000,2
|
| 79 |
+
np.float32,0x40c90fdb,0x3f800000,2
|
| 80 |
+
np.float32,0xc0c90fdb,0x3f800000,2
|
| 81 |
+
np.float32,0x41490fdb,0x3f800000,2
|
| 82 |
+
np.float32,0xc1490fdb,0x3f800000,2
|
| 83 |
+
np.float32,0x41c90fdb,0x3f800000,2
|
| 84 |
+
np.float32,0xc1c90fdb,0x3f800000,2
|
| 85 |
+
np.float32,0x40e231d6,0x3f3504f3,2
|
| 86 |
+
np.float32,0xc0e231d6,0x3f3504f3,2
|
| 87 |
+
np.float32,0x416231d6,0xb319a6a2,2
|
| 88 |
+
np.float32,0xc16231d6,0xb319a6a2,2
|
| 89 |
+
np.float32,0x41e231d6,0xbf800000,2
|
| 90 |
+
np.float32,0xc1e231d6,0xbf800000,2
|
| 91 |
+
np.float32,0x40fb53d2,0xb4b5563d,2
|
| 92 |
+
np.float32,0xc0fb53d2,0xb4b5563d,2
|
| 93 |
+
np.float32,0x417b53d2,0xbf800000,2
|
| 94 |
+
np.float32,0xc17b53d2,0xbf800000,2
|
| 95 |
+
np.float32,0x41fb53d2,0x3f800000,2
|
| 96 |
+
np.float32,0xc1fb53d2,0x3f800000,2
|
| 97 |
+
np.float32,0x410a3ae7,0xbf3504fb,2
|
| 98 |
+
np.float32,0xc10a3ae7,0xbf3504fb,2
|
| 99 |
+
np.float32,0x418a3ae7,0x35b08908,2
|
| 100 |
+
np.float32,0xc18a3ae7,0x35b08908,2
|
| 101 |
+
np.float32,0x420a3ae7,0xbf800000,2
|
| 102 |
+
np.float32,0xc20a3ae7,0xbf800000,2
|
| 103 |
+
np.float32,0x4116cbe4,0xbf800000,2
|
| 104 |
+
np.float32,0xc116cbe4,0xbf800000,2
|
| 105 |
+
np.float32,0x4196cbe4,0x3f800000,2
|
| 106 |
+
np.float32,0xc196cbe4,0x3f800000,2
|
| 107 |
+
np.float32,0x4216cbe4,0x3f800000,2
|
| 108 |
+
np.float32,0xc216cbe4,0x3f800000,2
|
| 109 |
+
np.float32,0x41235ce2,0xbf3504ef,2
|
| 110 |
+
np.float32,0xc1235ce2,0xbf3504ef,2
|
| 111 |
+
np.float32,0x41a35ce2,0xb53889b6,2
|
| 112 |
+
np.float32,0xc1a35ce2,0xb53889b6,2
|
| 113 |
+
np.float32,0x42235ce2,0xbf800000,2
|
| 114 |
+
np.float32,0xc2235ce2,0xbf800000,2
|
| 115 |
+
np.float32,0x412fede0,0x353222c4,2
|
| 116 |
+
np.float32,0xc12fede0,0x353222c4,2
|
| 117 |
+
np.float32,0x41afede0,0xbf800000,2
|
| 118 |
+
np.float32,0xc1afede0,0xbf800000,2
|
| 119 |
+
np.float32,0x422fede0,0x3f800000,2
|
| 120 |
+
np.float32,0xc22fede0,0x3f800000,2
|
| 121 |
+
np.float32,0x413c7edd,0x3f3504f4,2
|
| 122 |
+
np.float32,0xc13c7edd,0x3f3504f4,2
|
| 123 |
+
np.float32,0x41bc7edd,0x33800add,2
|
| 124 |
+
np.float32,0xc1bc7edd,0x33800add,2
|
| 125 |
+
np.float32,0x423c7edd,0xbf800000,2
|
| 126 |
+
np.float32,0xc23c7edd,0xbf800000,2
|
| 127 |
+
np.float32,0x41490fdb,0x3f800000,2
|
| 128 |
+
np.float32,0xc1490fdb,0x3f800000,2
|
| 129 |
+
np.float32,0x41c90fdb,0x3f800000,2
|
| 130 |
+
np.float32,0xc1c90fdb,0x3f800000,2
|
| 131 |
+
np.float32,0x42490fdb,0x3f800000,2
|
| 132 |
+
np.float32,0xc2490fdb,0x3f800000,2
|
| 133 |
+
np.float32,0x4155a0d9,0x3f3504eb,2
|
| 134 |
+
np.float32,0xc155a0d9,0x3f3504eb,2
|
| 135 |
+
np.float32,0x41d5a0d9,0xb5b3bc81,2
|
| 136 |
+
np.float32,0xc1d5a0d9,0xb5b3bc81,2
|
| 137 |
+
np.float32,0x4255a0d9,0xbf800000,2
|
| 138 |
+
np.float32,0xc255a0d9,0xbf800000,2
|
| 139 |
+
np.float32,0x416231d6,0xb319a6a2,2
|
| 140 |
+
np.float32,0xc16231d6,0xb319a6a2,2
|
| 141 |
+
np.float32,0x41e231d6,0xbf800000,2
|
| 142 |
+
np.float32,0xc1e231d6,0xbf800000,2
|
| 143 |
+
np.float32,0x426231d6,0x3f800000,2
|
| 144 |
+
np.float32,0xc26231d6,0x3f800000,2
|
| 145 |
+
np.float32,0x416ec2d4,0xbf3504f7,2
|
| 146 |
+
np.float32,0xc16ec2d4,0xbf3504f7,2
|
| 147 |
+
np.float32,0x41eec2d4,0x353ef0a7,2
|
| 148 |
+
np.float32,0xc1eec2d4,0x353ef0a7,2
|
| 149 |
+
np.float32,0x426ec2d4,0xbf800000,2
|
| 150 |
+
np.float32,0xc26ec2d4,0xbf800000,2
|
| 151 |
+
np.float32,0x417b53d2,0xbf800000,2
|
| 152 |
+
np.float32,0xc17b53d2,0xbf800000,2
|
| 153 |
+
np.float32,0x41fb53d2,0x3f800000,2
|
| 154 |
+
np.float32,0xc1fb53d2,0x3f800000,2
|
| 155 |
+
np.float32,0x427b53d2,0x3f800000,2
|
| 156 |
+
np.float32,0xc27b53d2,0x3f800000,2
|
| 157 |
+
np.float32,0x4183f268,0xbf3504e7,2
|
| 158 |
+
np.float32,0xc183f268,0xbf3504e7,2
|
| 159 |
+
np.float32,0x4203f268,0xb6059a13,2
|
| 160 |
+
np.float32,0xc203f268,0xb6059a13,2
|
| 161 |
+
np.float32,0x4283f268,0xbf800000,2
|
| 162 |
+
np.float32,0xc283f268,0xbf800000,2
|
| 163 |
+
np.float32,0x418a3ae7,0x35b08908,2
|
| 164 |
+
np.float32,0xc18a3ae7,0x35b08908,2
|
| 165 |
+
np.float32,0x420a3ae7,0xbf800000,2
|
| 166 |
+
np.float32,0xc20a3ae7,0xbf800000,2
|
| 167 |
+
np.float32,0x428a3ae7,0x3f800000,2
|
| 168 |
+
np.float32,0xc28a3ae7,0x3f800000,2
|
| 169 |
+
np.float32,0x41908365,0x3f3504f0,2
|
| 170 |
+
np.float32,0xc1908365,0x3f3504f0,2
|
| 171 |
+
np.float32,0x42108365,0xb512200d,2
|
| 172 |
+
np.float32,0xc2108365,0xb512200d,2
|
| 173 |
+
np.float32,0x42908365,0xbf800000,2
|
| 174 |
+
np.float32,0xc2908365,0xbf800000,2
|
| 175 |
+
np.float32,0x4196cbe4,0x3f800000,2
|
| 176 |
+
np.float32,0xc196cbe4,0x3f800000,2
|
| 177 |
+
np.float32,0x4216cbe4,0x3f800000,2
|
| 178 |
+
np.float32,0xc216cbe4,0x3f800000,2
|
| 179 |
+
np.float32,0x4296cbe4,0x3f800000,2
|
| 180 |
+
np.float32,0xc296cbe4,0x3f800000,2
|
| 181 |
+
np.float32,0x419d1463,0x3f3504ef,2
|
| 182 |
+
np.float32,0xc19d1463,0x3f3504ef,2
|
| 183 |
+
np.float32,0x421d1463,0xb5455799,2
|
| 184 |
+
np.float32,0xc21d1463,0xb5455799,2
|
| 185 |
+
np.float32,0x429d1463,0xbf800000,2
|
| 186 |
+
np.float32,0xc29d1463,0xbf800000,2
|
| 187 |
+
np.float32,0x41a35ce2,0xb53889b6,2
|
| 188 |
+
np.float32,0xc1a35ce2,0xb53889b6,2
|
| 189 |
+
np.float32,0x42235ce2,0xbf800000,2
|
| 190 |
+
np.float32,0xc2235ce2,0xbf800000,2
|
| 191 |
+
np.float32,0x42a35ce2,0x3f800000,2
|
| 192 |
+
np.float32,0xc2a35ce2,0x3f800000,2
|
| 193 |
+
np.float32,0x41a9a561,0xbf3504ff,2
|
| 194 |
+
np.float32,0xc1a9a561,0xbf3504ff,2
|
| 195 |
+
np.float32,0x4229a561,0x360733d0,2
|
| 196 |
+
np.float32,0xc229a561,0x360733d0,2
|
| 197 |
+
np.float32,0x42a9a561,0xbf800000,2
|
| 198 |
+
np.float32,0xc2a9a561,0xbf800000,2
|
| 199 |
+
np.float32,0x41afede0,0xbf800000,2
|
| 200 |
+
np.float32,0xc1afede0,0xbf800000,2
|
| 201 |
+
np.float32,0x422fede0,0x3f800000,2
|
| 202 |
+
np.float32,0xc22fede0,0x3f800000,2
|
| 203 |
+
np.float32,0x42afede0,0x3f800000,2
|
| 204 |
+
np.float32,0xc2afede0,0x3f800000,2
|
| 205 |
+
np.float32,0x41b6365e,0xbf3504f6,2
|
| 206 |
+
np.float32,0xc1b6365e,0xbf3504f6,2
|
| 207 |
+
np.float32,0x4236365e,0x350bb91c,2
|
| 208 |
+
np.float32,0xc236365e,0x350bb91c,2
|
| 209 |
+
np.float32,0x42b6365e,0xbf800000,2
|
| 210 |
+
np.float32,0xc2b6365e,0xbf800000,2
|
| 211 |
+
np.float32,0x41bc7edd,0x33800add,2
|
| 212 |
+
np.float32,0xc1bc7edd,0x33800add,2
|
| 213 |
+
np.float32,0x423c7edd,0xbf800000,2
|
| 214 |
+
np.float32,0xc23c7edd,0xbf800000,2
|
| 215 |
+
np.float32,0x42bc7edd,0x3f800000,2
|
| 216 |
+
np.float32,0xc2bc7edd,0x3f800000,2
|
| 217 |
+
np.float32,0x41c2c75c,0x3f3504f8,2
|
| 218 |
+
np.float32,0xc1c2c75c,0x3f3504f8,2
|
| 219 |
+
np.float32,0x4242c75c,0x354bbe8a,2
|
| 220 |
+
np.float32,0xc242c75c,0x354bbe8a,2
|
| 221 |
+
np.float32,0x42c2c75c,0xbf800000,2
|
| 222 |
+
np.float32,0xc2c2c75c,0xbf800000,2
|
| 223 |
+
np.float32,0x41c90fdb,0x3f800000,2
|
| 224 |
+
np.float32,0xc1c90fdb,0x3f800000,2
|
| 225 |
+
np.float32,0x42490fdb,0x3f800000,2
|
| 226 |
+
np.float32,0xc2490fdb,0x3f800000,2
|
| 227 |
+
np.float32,0x42c90fdb,0x3f800000,2
|
| 228 |
+
np.float32,0xc2c90fdb,0x3f800000,2
|
| 229 |
+
np.float32,0x41cf585a,0x3f3504e7,2
|
| 230 |
+
np.float32,0xc1cf585a,0x3f3504e7,2
|
| 231 |
+
np.float32,0x424f585a,0xb608cd8c,2
|
| 232 |
+
np.float32,0xc24f585a,0xb608cd8c,2
|
| 233 |
+
np.float32,0x42cf585a,0xbf800000,2
|
| 234 |
+
np.float32,0xc2cf585a,0xbf800000,2
|
| 235 |
+
np.float32,0x41d5a0d9,0xb5b3bc81,2
|
| 236 |
+
np.float32,0xc1d5a0d9,0xb5b3bc81,2
|
| 237 |
+
np.float32,0x4255a0d9,0xbf800000,2
|
| 238 |
+
np.float32,0xc255a0d9,0xbf800000,2
|
| 239 |
+
np.float32,0x42d5a0d9,0x3f800000,2
|
| 240 |
+
np.float32,0xc2d5a0d9,0x3f800000,2
|
| 241 |
+
np.float32,0x41dbe958,0xbf350507,2
|
| 242 |
+
np.float32,0xc1dbe958,0xbf350507,2
|
| 243 |
+
np.float32,0x425be958,0x365eab75,2
|
| 244 |
+
np.float32,0xc25be958,0x365eab75,2
|
| 245 |
+
np.float32,0x42dbe958,0xbf800000,2
|
| 246 |
+
np.float32,0xc2dbe958,0xbf800000,2
|
| 247 |
+
np.float32,0x41e231d6,0xbf800000,2
|
| 248 |
+
np.float32,0xc1e231d6,0xbf800000,2
|
| 249 |
+
np.float32,0x426231d6,0x3f800000,2
|
| 250 |
+
np.float32,0xc26231d6,0x3f800000,2
|
| 251 |
+
np.float32,0x42e231d6,0x3f800000,2
|
| 252 |
+
np.float32,0xc2e231d6,0x3f800000,2
|
| 253 |
+
np.float32,0x41e87a55,0xbf3504ef,2
|
| 254 |
+
np.float32,0xc1e87a55,0xbf3504ef,2
|
| 255 |
+
np.float32,0x42687a55,0xb552257b,2
|
| 256 |
+
np.float32,0xc2687a55,0xb552257b,2
|
| 257 |
+
np.float32,0x42e87a55,0xbf800000,2
|
| 258 |
+
np.float32,0xc2e87a55,0xbf800000,2
|
| 259 |
+
np.float32,0x41eec2d4,0x353ef0a7,2
|
| 260 |
+
np.float32,0xc1eec2d4,0x353ef0a7,2
|
| 261 |
+
np.float32,0x426ec2d4,0xbf800000,2
|
| 262 |
+
np.float32,0xc26ec2d4,0xbf800000,2
|
| 263 |
+
np.float32,0x42eec2d4,0x3f800000,2
|
| 264 |
+
np.float32,0xc2eec2d4,0x3f800000,2
|
| 265 |
+
np.float32,0x41f50b53,0x3f3504ff,2
|
| 266 |
+
np.float32,0xc1f50b53,0x3f3504ff,2
|
| 267 |
+
np.float32,0x42750b53,0x360a6748,2
|
| 268 |
+
np.float32,0xc2750b53,0x360a6748,2
|
| 269 |
+
np.float32,0x42f50b53,0xbf800000,2
|
| 270 |
+
np.float32,0xc2f50b53,0xbf800000,2
|
| 271 |
+
np.float32,0x41fb53d2,0x3f800000,2
|
| 272 |
+
np.float32,0xc1fb53d2,0x3f800000,2
|
| 273 |
+
np.float32,0x427b53d2,0x3f800000,2
|
| 274 |
+
np.float32,0xc27b53d2,0x3f800000,2
|
| 275 |
+
np.float32,0x42fb53d2,0x3f800000,2
|
| 276 |
+
np.float32,0xc2fb53d2,0x3f800000,2
|
| 277 |
+
np.float32,0x4200ce28,0x3f3504f6,2
|
| 278 |
+
np.float32,0xc200ce28,0x3f3504f6,2
|
| 279 |
+
np.float32,0x4280ce28,0x34fdd672,2
|
| 280 |
+
np.float32,0xc280ce28,0x34fdd672,2
|
| 281 |
+
np.float32,0x4300ce28,0xbf800000,2
|
| 282 |
+
np.float32,0xc300ce28,0xbf800000,2
|
| 283 |
+
np.float32,0x4203f268,0xb6059a13,2
|
| 284 |
+
np.float32,0xc203f268,0xb6059a13,2
|
| 285 |
+
np.float32,0x4283f268,0xbf800000,2
|
| 286 |
+
np.float32,0xc283f268,0xbf800000,2
|
| 287 |
+
np.float32,0x4303f268,0x3f800000,2
|
| 288 |
+
np.float32,0xc303f268,0x3f800000,2
|
| 289 |
+
np.float32,0x420716a7,0xbf3504f8,2
|
| 290 |
+
np.float32,0xc20716a7,0xbf3504f8,2
|
| 291 |
+
np.float32,0x428716a7,0x35588c6d,2
|
| 292 |
+
np.float32,0xc28716a7,0x35588c6d,2
|
| 293 |
+
np.float32,0x430716a7,0xbf800000,2
|
| 294 |
+
np.float32,0xc30716a7,0xbf800000,2
|
| 295 |
+
np.float32,0x420a3ae7,0xbf800000,2
|
| 296 |
+
np.float32,0xc20a3ae7,0xbf800000,2
|
| 297 |
+
np.float32,0x428a3ae7,0x3f800000,2
|
| 298 |
+
np.float32,0xc28a3ae7,0x3f800000,2
|
| 299 |
+
np.float32,0x430a3ae7,0x3f800000,2
|
| 300 |
+
np.float32,0xc30a3ae7,0x3f800000,2
|
| 301 |
+
np.float32,0x420d5f26,0xbf3504e7,2
|
| 302 |
+
np.float32,0xc20d5f26,0xbf3504e7,2
|
| 303 |
+
np.float32,0x428d5f26,0xb60c0105,2
|
| 304 |
+
np.float32,0xc28d5f26,0xb60c0105,2
|
| 305 |
+
np.float32,0x430d5f26,0xbf800000,2
|
| 306 |
+
np.float32,0xc30d5f26,0xbf800000,2
|
| 307 |
+
np.float32,0x42108365,0xb512200d,2
|
| 308 |
+
np.float32,0xc2108365,0xb512200d,2
|
| 309 |
+
np.float32,0x42908365,0xbf800000,2
|
| 310 |
+
np.float32,0xc2908365,0xbf800000,2
|
| 311 |
+
np.float32,0x43108365,0x3f800000,2
|
| 312 |
+
np.float32,0xc3108365,0x3f800000,2
|
| 313 |
+
np.float32,0x4213a7a5,0x3f350507,2
|
| 314 |
+
np.float32,0xc213a7a5,0x3f350507,2
|
| 315 |
+
np.float32,0x4293a7a5,0x3661deee,2
|
| 316 |
+
np.float32,0xc293a7a5,0x3661deee,2
|
| 317 |
+
np.float32,0x4313a7a5,0xbf800000,2
|
| 318 |
+
np.float32,0xc313a7a5,0xbf800000,2
|
| 319 |
+
np.float32,0x4216cbe4,0x3f800000,2
|
| 320 |
+
np.float32,0xc216cbe4,0x3f800000,2
|
| 321 |
+
np.float32,0x4296cbe4,0x3f800000,2
|
| 322 |
+
np.float32,0xc296cbe4,0x3f800000,2
|
| 323 |
+
np.float32,0x4316cbe4,0x3f800000,2
|
| 324 |
+
np.float32,0xc316cbe4,0x3f800000,2
|
| 325 |
+
np.float32,0x4219f024,0x3f3504d8,2
|
| 326 |
+
np.float32,0xc219f024,0x3f3504d8,2
|
| 327 |
+
np.float32,0x4299f024,0xb69bde6c,2
|
| 328 |
+
np.float32,0xc299f024,0xb69bde6c,2
|
| 329 |
+
np.float32,0x4319f024,0xbf800000,2
|
| 330 |
+
np.float32,0xc319f024,0xbf800000,2
|
| 331 |
+
np.float32,0x421d1463,0xb5455799,2
|
| 332 |
+
np.float32,0xc21d1463,0xb5455799,2
|
| 333 |
+
np.float32,0x429d1463,0xbf800000,2
|
| 334 |
+
np.float32,0xc29d1463,0xbf800000,2
|
| 335 |
+
np.float32,0x431d1463,0x3f800000,2
|
| 336 |
+
np.float32,0xc31d1463,0x3f800000,2
|
| 337 |
+
np.float32,0x422038a3,0xbf350516,2
|
| 338 |
+
np.float32,0xc22038a3,0xbf350516,2
|
| 339 |
+
np.float32,0x42a038a3,0x36c6cd61,2
|
| 340 |
+
np.float32,0xc2a038a3,0x36c6cd61,2
|
| 341 |
+
np.float32,0x432038a3,0xbf800000,2
|
| 342 |
+
np.float32,0xc32038a3,0xbf800000,2
|
| 343 |
+
np.float32,0x42235ce2,0xbf800000,2
|
| 344 |
+
np.float32,0xc2235ce2,0xbf800000,2
|
| 345 |
+
np.float32,0x42a35ce2,0x3f800000,2
|
| 346 |
+
np.float32,0xc2a35ce2,0x3f800000,2
|
| 347 |
+
np.float32,0x43235ce2,0x3f800000,2
|
| 348 |
+
np.float32,0xc3235ce2,0x3f800000,2
|
| 349 |
+
np.float32,0x42268121,0xbf3504f6,2
|
| 350 |
+
np.float32,0xc2268121,0xbf3504f6,2
|
| 351 |
+
np.float32,0x42a68121,0x34e43aac,2
|
| 352 |
+
np.float32,0xc2a68121,0x34e43aac,2
|
| 353 |
+
np.float32,0x43268121,0xbf800000,2
|
| 354 |
+
np.float32,0xc3268121,0xbf800000,2
|
| 355 |
+
np.float32,0x4229a561,0x360733d0,2
|
| 356 |
+
np.float32,0xc229a561,0x360733d0,2
|
| 357 |
+
np.float32,0x42a9a561,0xbf800000,2
|
| 358 |
+
np.float32,0xc2a9a561,0xbf800000,2
|
| 359 |
+
np.float32,0x4329a561,0x3f800000,2
|
| 360 |
+
np.float32,0xc329a561,0x3f800000,2
|
| 361 |
+
np.float32,0x422cc9a0,0x3f3504f8,2
|
| 362 |
+
np.float32,0xc22cc9a0,0x3f3504f8,2
|
| 363 |
+
np.float32,0x42acc9a0,0x35655a50,2
|
| 364 |
+
np.float32,0xc2acc9a0,0x35655a50,2
|
| 365 |
+
np.float32,0x432cc9a0,0xbf800000,2
|
| 366 |
+
np.float32,0xc32cc9a0,0xbf800000,2
|
| 367 |
+
np.float32,0x422fede0,0x3f800000,2
|
| 368 |
+
np.float32,0xc22fede0,0x3f800000,2
|
| 369 |
+
np.float32,0x42afede0,0x3f800000,2
|
| 370 |
+
np.float32,0xc2afede0,0x3f800000,2
|
| 371 |
+
np.float32,0x432fede0,0x3f800000,2
|
| 372 |
+
np.float32,0xc32fede0,0x3f800000,2
|
| 373 |
+
np.float32,0x4233121f,0x3f3504e7,2
|
| 374 |
+
np.float32,0xc233121f,0x3f3504e7,2
|
| 375 |
+
np.float32,0x42b3121f,0xb60f347d,2
|
| 376 |
+
np.float32,0xc2b3121f,0xb60f347d,2
|
| 377 |
+
np.float32,0x4333121f,0xbf800000,2
|
| 378 |
+
np.float32,0xc333121f,0xbf800000,2
|
| 379 |
+
np.float32,0x4236365e,0x350bb91c,2
|
| 380 |
+
np.float32,0xc236365e,0x350bb91c,2
|
| 381 |
+
np.float32,0x42b6365e,0xbf800000,2
|
| 382 |
+
np.float32,0xc2b6365e,0xbf800000,2
|
| 383 |
+
np.float32,0x4336365e,0x3f800000,2
|
| 384 |
+
np.float32,0xc336365e,0x3f800000,2
|
| 385 |
+
np.float32,0x42395a9e,0xbf350507,2
|
| 386 |
+
np.float32,0xc2395a9e,0xbf350507,2
|
| 387 |
+
np.float32,0x42b95a9e,0x36651267,2
|
| 388 |
+
np.float32,0xc2b95a9e,0x36651267,2
|
| 389 |
+
np.float32,0x43395a9e,0xbf800000,2
|
| 390 |
+
np.float32,0xc3395a9e,0xbf800000,2
|
| 391 |
+
np.float32,0x423c7edd,0xbf800000,2
|
| 392 |
+
np.float32,0xc23c7edd,0xbf800000,2
|
| 393 |
+
np.float32,0x42bc7edd,0x3f800000,2
|
| 394 |
+
np.float32,0xc2bc7edd,0x3f800000,2
|
| 395 |
+
np.float32,0x433c7edd,0x3f800000,2
|
| 396 |
+
np.float32,0xc33c7edd,0x3f800000,2
|
| 397 |
+
np.float32,0x423fa31d,0xbf3504d7,2
|
| 398 |
+
np.float32,0xc23fa31d,0xbf3504d7,2
|
| 399 |
+
np.float32,0x42bfa31d,0xb69d7828,2
|
| 400 |
+
np.float32,0xc2bfa31d,0xb69d7828,2
|
| 401 |
+
np.float32,0x433fa31d,0xbf800000,2
|
| 402 |
+
np.float32,0xc33fa31d,0xbf800000,2
|
| 403 |
+
np.float32,0x4242c75c,0x354bbe8a,2
|
| 404 |
+
np.float32,0xc242c75c,0x354bbe8a,2
|
| 405 |
+
np.float32,0x42c2c75c,0xbf800000,2
|
| 406 |
+
np.float32,0xc2c2c75c,0xbf800000,2
|
| 407 |
+
np.float32,0x4342c75c,0x3f800000,2
|
| 408 |
+
np.float32,0xc342c75c,0x3f800000,2
|
| 409 |
+
np.float32,0x4245eb9c,0x3f350517,2
|
| 410 |
+
np.float32,0xc245eb9c,0x3f350517,2
|
| 411 |
+
np.float32,0x42c5eb9c,0x36c8671d,2
|
| 412 |
+
np.float32,0xc2c5eb9c,0x36c8671d,2
|
| 413 |
+
np.float32,0x4345eb9c,0xbf800000,2
|
| 414 |
+
np.float32,0xc345eb9c,0xbf800000,2
|
| 415 |
+
np.float32,0x42490fdb,0x3f800000,2
|
| 416 |
+
np.float32,0xc2490fdb,0x3f800000,2
|
| 417 |
+
np.float32,0x42c90fdb,0x3f800000,2
|
| 418 |
+
np.float32,0xc2c90fdb,0x3f800000,2
|
| 419 |
+
np.float32,0x43490fdb,0x3f800000,2
|
| 420 |
+
np.float32,0xc3490fdb,0x3f800000,2
|
| 421 |
+
np.float32,0x424c341a,0x3f3504f5,2
|
| 422 |
+
np.float32,0xc24c341a,0x3f3504f5,2
|
| 423 |
+
np.float32,0x42cc341a,0x34ca9ee6,2
|
| 424 |
+
np.float32,0xc2cc341a,0x34ca9ee6,2
|
| 425 |
+
np.float32,0x434c341a,0xbf800000,2
|
| 426 |
+
np.float32,0xc34c341a,0xbf800000,2
|
| 427 |
+
np.float32,0x424f585a,0xb608cd8c,2
|
| 428 |
+
np.float32,0xc24f585a,0xb608cd8c,2
|
| 429 |
+
np.float32,0x42cf585a,0xbf800000,2
|
| 430 |
+
np.float32,0xc2cf585a,0xbf800000,2
|
| 431 |
+
np.float32,0x434f585a,0x3f800000,2
|
| 432 |
+
np.float32,0xc34f585a,0x3f800000,2
|
| 433 |
+
np.float32,0x42527c99,0xbf3504f9,2
|
| 434 |
+
np.float32,0xc2527c99,0xbf3504f9,2
|
| 435 |
+
np.float32,0x42d27c99,0x35722833,2
|
| 436 |
+
np.float32,0xc2d27c99,0x35722833,2
|
| 437 |
+
np.float32,0x43527c99,0xbf800000,2
|
| 438 |
+
np.float32,0xc3527c99,0xbf800000,2
|
| 439 |
+
np.float32,0x4255a0d9,0xbf800000,2
|
| 440 |
+
np.float32,0xc255a0d9,0xbf800000,2
|
| 441 |
+
np.float32,0x42d5a0d9,0x3f800000,2
|
| 442 |
+
np.float32,0xc2d5a0d9,0x3f800000,2
|
| 443 |
+
np.float32,0x4355a0d9,0x3f800000,2
|
| 444 |
+
np.float32,0xc355a0d9,0x3f800000,2
|
| 445 |
+
np.float32,0x4258c518,0xbf3504e6,2
|
| 446 |
+
np.float32,0xc258c518,0xbf3504e6,2
|
| 447 |
+
np.float32,0x42d8c518,0xb61267f6,2
|
| 448 |
+
np.float32,0xc2d8c518,0xb61267f6,2
|
| 449 |
+
np.float32,0x4358c518,0xbf800000,2
|
| 450 |
+
np.float32,0xc358c518,0xbf800000,2
|
| 451 |
+
np.float32,0x425be958,0x365eab75,2
|
| 452 |
+
np.float32,0xc25be958,0x365eab75,2
|
| 453 |
+
np.float32,0x42dbe958,0xbf800000,2
|
| 454 |
+
np.float32,0xc2dbe958,0xbf800000,2
|
| 455 |
+
np.float32,0x435be958,0x3f800000,2
|
| 456 |
+
np.float32,0xc35be958,0x3f800000,2
|
| 457 |
+
np.float32,0x425f0d97,0x3f350508,2
|
| 458 |
+
np.float32,0xc25f0d97,0x3f350508,2
|
| 459 |
+
np.float32,0x42df0d97,0x366845e0,2
|
| 460 |
+
np.float32,0xc2df0d97,0x366845e0,2
|
| 461 |
+
np.float32,0x435f0d97,0xbf800000,2
|
| 462 |
+
np.float32,0xc35f0d97,0xbf800000,2
|
| 463 |
+
np.float32,0x426231d6,0x3f800000,2
|
| 464 |
+
np.float32,0xc26231d6,0x3f800000,2
|
| 465 |
+
np.float32,0x42e231d6,0x3f800000,2
|
| 466 |
+
np.float32,0xc2e231d6,0x3f800000,2
|
| 467 |
+
np.float32,0x436231d6,0x3f800000,2
|
| 468 |
+
np.float32,0xc36231d6,0x3f800000,2
|
| 469 |
+
np.float32,0x42655616,0x3f3504d7,2
|
| 470 |
+
np.float32,0xc2655616,0x3f3504d7,2
|
| 471 |
+
np.float32,0x42e55616,0xb69f11e5,2
|
| 472 |
+
np.float32,0xc2e55616,0xb69f11e5,2
|
| 473 |
+
np.float32,0x43655616,0xbf800000,2
|
| 474 |
+
np.float32,0xc3655616,0xbf800000,2
|
| 475 |
+
np.float32,0x42687a55,0xb552257b,2
|
| 476 |
+
np.float32,0xc2687a55,0xb552257b,2
|
| 477 |
+
np.float32,0x42e87a55,0xbf800000,2
|
| 478 |
+
np.float32,0xc2e87a55,0xbf800000,2
|
| 479 |
+
np.float32,0x43687a55,0x3f800000,2
|
| 480 |
+
np.float32,0xc3687a55,0x3f800000,2
|
| 481 |
+
np.float32,0x426b9e95,0xbf350517,2
|
| 482 |
+
np.float32,0xc26b9e95,0xbf350517,2
|
| 483 |
+
np.float32,0x42eb9e95,0x36ca00d9,2
|
| 484 |
+
np.float32,0xc2eb9e95,0x36ca00d9,2
|
| 485 |
+
np.float32,0x436b9e95,0xbf800000,2
|
| 486 |
+
np.float32,0xc36b9e95,0xbf800000,2
|
| 487 |
+
np.float32,0x426ec2d4,0xbf800000,2
|
| 488 |
+
np.float32,0xc26ec2d4,0xbf800000,2
|
| 489 |
+
np.float32,0x42eec2d4,0x3f800000,2
|
| 490 |
+
np.float32,0xc2eec2d4,0x3f800000,2
|
| 491 |
+
np.float32,0x436ec2d4,0x3f800000,2
|
| 492 |
+
np.float32,0xc36ec2d4,0x3f800000,2
|
| 493 |
+
np.float32,0x4271e713,0xbf3504f5,2
|
| 494 |
+
np.float32,0xc271e713,0xbf3504f5,2
|
| 495 |
+
np.float32,0x42f1e713,0x34b10321,2
|
| 496 |
+
np.float32,0xc2f1e713,0x34b10321,2
|
| 497 |
+
np.float32,0x4371e713,0xbf800000,2
|
| 498 |
+
np.float32,0xc371e713,0xbf800000,2
|
| 499 |
+
np.float32,0x42750b53,0x360a6748,2
|
| 500 |
+
np.float32,0xc2750b53,0x360a6748,2
|
| 501 |
+
np.float32,0x42f50b53,0xbf800000,2
|
| 502 |
+
np.float32,0xc2f50b53,0xbf800000,2
|
| 503 |
+
np.float32,0x43750b53,0x3f800000,2
|
| 504 |
+
np.float32,0xc3750b53,0x3f800000,2
|
| 505 |
+
np.float32,0x42782f92,0x3f3504f9,2
|
| 506 |
+
np.float32,0xc2782f92,0x3f3504f9,2
|
| 507 |
+
np.float32,0x42f82f92,0x357ef616,2
|
| 508 |
+
np.float32,0xc2f82f92,0x357ef616,2
|
| 509 |
+
np.float32,0x43782f92,0xbf800000,2
|
| 510 |
+
np.float32,0xc3782f92,0xbf800000,2
|
| 511 |
+
np.float32,0x427b53d2,0x3f800000,2
|
| 512 |
+
np.float32,0xc27b53d2,0x3f800000,2
|
| 513 |
+
np.float32,0x42fb53d2,0x3f800000,2
|
| 514 |
+
np.float32,0xc2fb53d2,0x3f800000,2
|
| 515 |
+
np.float32,0x437b53d2,0x3f800000,2
|
| 516 |
+
np.float32,0xc37b53d2,0x3f800000,2
|
| 517 |
+
np.float32,0x427e7811,0x3f3504e6,2
|
| 518 |
+
np.float32,0xc27e7811,0x3f3504e6,2
|
| 519 |
+
np.float32,0x42fe7811,0xb6159b6f,2
|
| 520 |
+
np.float32,0xc2fe7811,0xb6159b6f,2
|
| 521 |
+
np.float32,0x437e7811,0xbf800000,2
|
| 522 |
+
np.float32,0xc37e7811,0xbf800000,2
|
| 523 |
+
np.float32,0x4280ce28,0x34fdd672,2
|
| 524 |
+
np.float32,0xc280ce28,0x34fdd672,2
|
| 525 |
+
np.float32,0x4300ce28,0xbf800000,2
|
| 526 |
+
np.float32,0xc300ce28,0xbf800000,2
|
| 527 |
+
np.float32,0x4380ce28,0x3f800000,2
|
| 528 |
+
np.float32,0xc380ce28,0x3f800000,2
|
| 529 |
+
np.float32,0x42826048,0xbf350508,2
|
| 530 |
+
np.float32,0xc2826048,0xbf350508,2
|
| 531 |
+
np.float32,0x43026048,0x366b7958,2
|
| 532 |
+
np.float32,0xc3026048,0x366b7958,2
|
| 533 |
+
np.float32,0x43826048,0xbf800000,2
|
| 534 |
+
np.float32,0xc3826048,0xbf800000,2
|
| 535 |
+
np.float32,0x4283f268,0xbf800000,2
|
| 536 |
+
np.float32,0xc283f268,0xbf800000,2
|
| 537 |
+
np.float32,0x4303f268,0x3f800000,2
|
| 538 |
+
np.float32,0xc303f268,0x3f800000,2
|
| 539 |
+
np.float32,0x4383f268,0x3f800000,2
|
| 540 |
+
np.float32,0xc383f268,0x3f800000,2
|
| 541 |
+
np.float32,0x42858487,0xbf350504,2
|
| 542 |
+
np.float32,0xc2858487,0xbf350504,2
|
| 543 |
+
np.float32,0x43058487,0x363ea8be,2
|
| 544 |
+
np.float32,0xc3058487,0x363ea8be,2
|
| 545 |
+
np.float32,0x43858487,0xbf800000,2
|
| 546 |
+
np.float32,0xc3858487,0xbf800000,2
|
| 547 |
+
np.float32,0x428716a7,0x35588c6d,2
|
| 548 |
+
np.float32,0xc28716a7,0x35588c6d,2
|
| 549 |
+
np.float32,0x430716a7,0xbf800000,2
|
| 550 |
+
np.float32,0xc30716a7,0xbf800000,2
|
| 551 |
+
np.float32,0x438716a7,0x3f800000,2
|
| 552 |
+
np.float32,0xc38716a7,0x3f800000,2
|
| 553 |
+
np.float32,0x4288a8c7,0x3f350517,2
|
| 554 |
+
np.float32,0xc288a8c7,0x3f350517,2
|
| 555 |
+
np.float32,0x4308a8c7,0x36cb9a96,2
|
| 556 |
+
np.float32,0xc308a8c7,0x36cb9a96,2
|
| 557 |
+
np.float32,0x4388a8c7,0xbf800000,2
|
| 558 |
+
np.float32,0xc388a8c7,0xbf800000,2
|
| 559 |
+
np.float32,0x428a3ae7,0x3f800000,2
|
| 560 |
+
np.float32,0xc28a3ae7,0x3f800000,2
|
| 561 |
+
np.float32,0x430a3ae7,0x3f800000,2
|
| 562 |
+
np.float32,0xc30a3ae7,0x3f800000,2
|
| 563 |
+
np.float32,0x438a3ae7,0x3f800000,2
|
| 564 |
+
np.float32,0xc38a3ae7,0x3f800000,2
|
| 565 |
+
np.float32,0x428bcd06,0x3f3504f5,2
|
| 566 |
+
np.float32,0xc28bcd06,0x3f3504f5,2
|
| 567 |
+
np.float32,0x430bcd06,0x3497675b,2
|
| 568 |
+
np.float32,0xc30bcd06,0x3497675b,2
|
| 569 |
+
np.float32,0x438bcd06,0xbf800000,2
|
| 570 |
+
np.float32,0xc38bcd06,0xbf800000,2
|
| 571 |
+
np.float32,0x428d5f26,0xb60c0105,2
|
| 572 |
+
np.float32,0xc28d5f26,0xb60c0105,2
|
| 573 |
+
np.float32,0x430d5f26,0xbf800000,2
|
| 574 |
+
np.float32,0xc30d5f26,0xbf800000,2
|
| 575 |
+
np.float32,0x438d5f26,0x3f800000,2
|
| 576 |
+
np.float32,0xc38d5f26,0x3f800000,2
|
| 577 |
+
np.float32,0x428ef146,0xbf350526,2
|
| 578 |
+
np.float32,0xc28ef146,0xbf350526,2
|
| 579 |
+
np.float32,0x430ef146,0x3710bc40,2
|
| 580 |
+
np.float32,0xc30ef146,0x3710bc40,2
|
| 581 |
+
np.float32,0x438ef146,0xbf800000,2
|
| 582 |
+
np.float32,0xc38ef146,0xbf800000,2
|
| 583 |
+
np.float32,0x42908365,0xbf800000,2
|
| 584 |
+
np.float32,0xc2908365,0xbf800000,2
|
| 585 |
+
np.float32,0x43108365,0x3f800000,2
|
| 586 |
+
np.float32,0xc3108365,0x3f800000,2
|
| 587 |
+
np.float32,0x43908365,0x3f800000,2
|
| 588 |
+
np.float32,0xc3908365,0x3f800000,2
|
| 589 |
+
np.float32,0x42921585,0xbf3504e6,2
|
| 590 |
+
np.float32,0xc2921585,0xbf3504e6,2
|
| 591 |
+
np.float32,0x43121585,0xb618cee8,2
|
| 592 |
+
np.float32,0xc3121585,0xb618cee8,2
|
| 593 |
+
np.float32,0x43921585,0xbf800000,2
|
| 594 |
+
np.float32,0xc3921585,0xbf800000,2
|
| 595 |
+
np.float32,0x4293a7a5,0x3661deee,2
|
| 596 |
+
np.float32,0xc293a7a5,0x3661deee,2
|
| 597 |
+
np.float32,0x4313a7a5,0xbf800000,2
|
| 598 |
+
np.float32,0xc313a7a5,0xbf800000,2
|
| 599 |
+
np.float32,0x4393a7a5,0x3f800000,2
|
| 600 |
+
np.float32,0xc393a7a5,0x3f800000,2
|
| 601 |
+
np.float32,0x429539c5,0x3f350536,2
|
| 602 |
+
np.float32,0xc29539c5,0x3f350536,2
|
| 603 |
+
np.float32,0x431539c5,0x373bab34,2
|
| 604 |
+
np.float32,0xc31539c5,0x373bab34,2
|
| 605 |
+
np.float32,0x439539c5,0xbf800000,2
|
| 606 |
+
np.float32,0xc39539c5,0xbf800000,2
|
| 607 |
+
np.float32,0x4296cbe4,0x3f800000,2
|
| 608 |
+
np.float32,0xc296cbe4,0x3f800000,2
|
| 609 |
+
np.float32,0x4316cbe4,0x3f800000,2
|
| 610 |
+
np.float32,0xc316cbe4,0x3f800000,2
|
| 611 |
+
np.float32,0x4396cbe4,0x3f800000,2
|
| 612 |
+
np.float32,0xc396cbe4,0x3f800000,2
|
| 613 |
+
np.float32,0x42985e04,0x3f3504d7,2
|
| 614 |
+
np.float32,0xc2985e04,0x3f3504d7,2
|
| 615 |
+
np.float32,0x43185e04,0xb6a2455d,2
|
| 616 |
+
np.float32,0xc3185e04,0xb6a2455d,2
|
| 617 |
+
np.float32,0x43985e04,0xbf800000,2
|
| 618 |
+
np.float32,0xc3985e04,0xbf800000,2
|
| 619 |
+
np.float32,0x4299f024,0xb69bde6c,2
|
| 620 |
+
np.float32,0xc299f024,0xb69bde6c,2
|
| 621 |
+
np.float32,0x4319f024,0xbf800000,2
|
| 622 |
+
np.float32,0xc319f024,0xbf800000,2
|
| 623 |
+
np.float32,0x4399f024,0x3f800000,2
|
| 624 |
+
np.float32,0xc399f024,0x3f800000,2
|
| 625 |
+
np.float32,0x429b8243,0xbf3504ea,2
|
| 626 |
+
np.float32,0xc29b8243,0xbf3504ea,2
|
| 627 |
+
np.float32,0x431b8243,0xb5cb2eb8,2
|
| 628 |
+
np.float32,0xc31b8243,0xb5cb2eb8,2
|
| 629 |
+
np.float32,0x439b8243,0xbf800000,2
|
| 630 |
+
np.float32,0xc39b8243,0xbf800000,2
|
| 631 |
+
np.float32,0x435b2047,0x3f3504c1,2
|
| 632 |
+
np.float32,0x42a038a2,0xb5e4ca7e,2
|
| 633 |
+
np.float32,0x432038a2,0xbf800000,2
|
| 634 |
+
np.float32,0x4345eb9b,0xbf800000,2
|
| 635 |
+
np.float32,0x42c5eb9b,0xb5de638c,2
|
| 636 |
+
np.float32,0x42eb9e94,0xb5d7fc9b,2
|
| 637 |
+
np.float32,0x4350ea79,0x3631dadb,2
|
| 638 |
+
np.float32,0x42dbe957,0xbf800000,2
|
| 639 |
+
np.float32,0x425be957,0xb505522a,2
|
| 640 |
+
np.float32,0x435be957,0x3f800000,2
|
| 641 |
+
np.float32,0x46027eb2,0x3e7d94c9,2
|
| 642 |
+
np.float32,0x4477baed,0xbe7f1824,2
|
| 643 |
+
np.float32,0x454b8024,0x3e7f5268,2
|
| 644 |
+
np.float32,0x455d2c09,0x3e7f40cb,2
|
| 645 |
+
np.float32,0x4768d3de,0xba14b4af,2
|
| 646 |
+
np.float32,0x46c1e7cd,0x3e7fb102,2
|
| 647 |
+
np.float32,0x44a52949,0xbe7dc9d5,2
|
| 648 |
+
np.float32,0x4454633a,0x3e7dbc7d,2
|
| 649 |
+
np.float32,0x4689810b,0x3e7eb02b,2
|
| 650 |
+
np.float32,0x473473cd,0xbe7eef6f,2
|
| 651 |
+
np.float32,0x44a5193f,0x3e7e1b1f,2
|
| 652 |
+
np.float32,0x46004b36,0x3e7dac59,2
|
| 653 |
+
np.float32,0x467f604b,0x3d7ffd3a,2
|
| 654 |
+
np.float32,0x45ea1805,0x3dffd2e0,2
|
| 655 |
+
np.float32,0x457b6af3,0x3dff7831,2
|
| 656 |
+
np.float32,0x44996159,0xbe7d85f4,2
|
| 657 |
+
np.float32,0x47883553,0xbb80584e,2
|
| 658 |
+
np.float32,0x44e19f0c,0xbdffcfe6,2
|
| 659 |
+
np.float32,0x472b3bf6,0xbe7f7a82,2
|
| 660 |
+
np.float32,0x4600bb4e,0x3a135e33,2
|
| 661 |
+
np.float32,0x449f4556,0x3e7e42e5,2
|
| 662 |
+
np.float32,0x474e9420,0x3dff77b2,2
|
| 663 |
+
np.float32,0x45cbdb23,0x3dff7240,2
|
| 664 |
+
np.float32,0x44222747,0x3dffb039,2
|
| 665 |
+
np.float32,0x4772e419,0xbdff74b8,2
|
| 666 |
+
np.float64,0x1,0x3ff0000000000000,1
|
| 667 |
+
np.float64,0x8000000000000001,0x3ff0000000000000,1
|
| 668 |
+
np.float64,0x10000000000000,0x3ff0000000000000,1
|
| 669 |
+
np.float64,0x8010000000000000,0x3ff0000000000000,1
|
| 670 |
+
np.float64,0x7fefffffffffffff,0xbfefffe62ecfab75,1
|
| 671 |
+
np.float64,0xffefffffffffffff,0xbfefffe62ecfab75,1
|
| 672 |
+
np.float64,0x7ff0000000000000,0xfff8000000000000,1
|
| 673 |
+
np.float64,0xfff0000000000000,0xfff8000000000000,1
|
| 674 |
+
np.float64,0x7ff8000000000000,0x7ff8000000000000,1
|
| 675 |
+
np.float64,0x7ff4000000000000,0x7ffc000000000000,1
|
| 676 |
+
np.float64,0xbfc28bd9dd2517b4,0x3fefaa28ba13a702,1
|
| 677 |
+
np.float64,0x3fb673c62e2ce790,0x3fefe083847a717f,1
|
| 678 |
+
np.float64,0xbfe3e1dac7e7c3b6,0x3fea0500ba099f3a,1
|
| 679 |
+
np.float64,0xbfbe462caa3c8c58,0x3fefc6c8b9c1c87c,1
|
| 680 |
+
np.float64,0xbfb9353576326a68,0x3fefd8513e50e6b1,1
|
| 681 |
+
np.float64,0xbfc05e798520bcf4,0x3fefbd1ad81cf089,1
|
| 682 |
+
np.float64,0xbfe3ca3be2e79478,0x3fea12b995ea6574,1
|
| 683 |
+
np.float64,0xbfde875d46bd0eba,0x3fec6d888662a824,1
|
| 684 |
+
np.float64,0x3fafc4e02c3f89c0,0x3feff03c34bffd69,1
|
| 685 |
+
np.float64,0xbf98855848310ac0,0x3feffda6c1588bdb,1
|
| 686 |
+
np.float64,0x3fe66c51186cd8a2,0x3fe875c61c630ecb,1
|
| 687 |
+
np.float64,0xbfedff1c3b7bfe38,0x3fe2f0c8c9e8fa39,1
|
| 688 |
+
np.float64,0x3fd6082267ac1044,0x3fee1f6023695050,1
|
| 689 |
+
np.float64,0xbfe78449b06f0894,0x3fe7bda2b223850e,1
|
| 690 |
+
np.float64,0x3feedb8e63fdb71c,0x3fe23d5dfd2dd33f,1
|
| 691 |
+
np.float64,0xbfc0a9de3d2153bc,0x3fefbaadf5e5285e,1
|
| 692 |
+
np.float64,0x3fc04c67432098d0,0x3fefbdae07b7de8d,1
|
| 693 |
+
np.float64,0xbfeeef84c4fddf0a,0x3fe22cf37f309d88,1
|
| 694 |
+
np.float64,0x3fc04bb025209760,0x3fefbdb3d7d34ecf,1
|
| 695 |
+
np.float64,0x3fd6b84d48ad709c,0x3fee013403da6e2a,1
|
| 696 |
+
np.float64,0x3fec1ae25d7835c4,0x3fe46e62195cf274,1
|
| 697 |
+
np.float64,0xbfdc6fdf9bb8dfc0,0x3fece48dc78bbb2e,1
|
| 698 |
+
np.float64,0x3fb4db2c9229b660,0x3fefe4d42f79bf49,1
|
| 699 |
+
np.float64,0xbfc0ed698521dad4,0x3fefb8785ea658c9,1
|
| 700 |
+
np.float64,0xbfee82772b7d04ee,0x3fe2864a80efe8e9,1
|
| 701 |
+
np.float64,0x3fd575b664aaeb6c,0x3fee37c669a12879,1
|
| 702 |
+
np.float64,0x3fe4afb1c5e95f64,0x3fe98b177194439c,1
|
| 703 |
+
np.float64,0x3fd93962f9b272c4,0x3fed8bef61876294,1
|
| 704 |
+
np.float64,0x3fd97ae025b2f5c0,0x3fed7f4cfbf4d300,1
|
| 705 |
+
np.float64,0xbfd9afdb1bb35fb6,0x3fed74fdc44dabb1,1
|
| 706 |
+
np.float64,0x3f8ae65e3035cc80,0x3fefff4b1a0ea62b,1
|
| 707 |
+
np.float64,0xbfe7e58664efcb0d,0x3fe77c02a1cbb670,1
|
| 708 |
+
np.float64,0x3fe5f68b37ebed16,0x3fe8c10f849a5d4d,1
|
| 709 |
+
np.float64,0x3fd9137d61b226fc,0x3fed9330eb4815a1,1
|
| 710 |
+
np.float64,0x3fc146d019228da0,0x3fefb57e2d4d52f8,1
|
| 711 |
+
np.float64,0xbfda6036edb4c06e,0x3fed521b2b578679,1
|
| 712 |
+
np.float64,0xbfe78ddfb0ef1bc0,0x3fe7b734319a77e4,1
|
| 713 |
+
np.float64,0x3fe0877823610ef0,0x3febd33a993dd786,1
|
| 714 |
+
np.float64,0x3fbc61af2e38c360,0x3fefcdb4f889756d,1
|
| 715 |
+
np.float64,0x3fd4dcdca4a9b9b8,0x3fee50962ffea5ae,1
|
| 716 |
+
np.float64,0xbfe03cb29f607965,0x3febf7dbf640a75a,1
|
| 717 |
+
np.float64,0xbfc81de407303bc8,0x3fef6f066cef64bc,1
|
| 718 |
+
np.float64,0x3fd8dea42db1bd48,0x3fed9d3e00dbe0b3,1
|
| 719 |
+
np.float64,0x3feac75e94f58ebe,0x3fe56f1f47f97896,1
|
| 720 |
+
np.float64,0x3fb3a1ea6e2743d0,0x3fefe7ec1247cdaa,1
|
| 721 |
+
np.float64,0x3fd695c0f4ad2b80,0x3fee0730bd40883d,1
|
| 722 |
+
np.float64,0xbfd2c631f5a58c64,0x3feea20cbd1105d7,1
|
| 723 |
+
np.float64,0xbfe978a8e1f2f152,0x3fe663014d40ad7a,1
|
| 724 |
+
np.float64,0x3fd8b6b76ab16d70,0x3feda4c879aacc19,1
|
| 725 |
+
np.float64,0x3feaafd30e755fa6,0x3fe5809514c28453,1
|
| 726 |
+
np.float64,0x3fe1e37dc263c6fc,0x3feb20f9ad1f3f5c,1
|
| 727 |
+
np.float64,0x3fd0ec7c24a1d8f8,0x3feee34048f43b75,1
|
| 728 |
+
np.float64,0xbfe3881cbf67103a,0x3fea38d7886e6f53,1
|
| 729 |
+
np.float64,0xbfd7023957ae0472,0x3fedf4471c765a1c,1
|
| 730 |
+
np.float64,0xbfebc51c4ef78a38,0x3fe4b01c424e297b,1
|
| 731 |
+
np.float64,0xbfe20a93eae41528,0x3feb0c2aa321d2e0,1
|
| 732 |
+
np.float64,0x3fef39be867e737e,0x3fe1efaba9164d27,1
|
| 733 |
+
np.float64,0x3fe8ea9576f1d52a,0x3fe6c7a8826ce1be,1
|
| 734 |
+
np.float64,0x3fea921d91f5243c,0x3fe5968c6cf78963,1
|
| 735 |
+
np.float64,0x3fd7ee5d31afdcbc,0x3fedc9f19d43fe61,1
|
| 736 |
+
np.float64,0xbfe3ed581767dab0,0x3fe9fe4ee2f2b1cd,1
|
| 737 |
+
np.float64,0xbfc40923d5281248,0x3fef9bd8ee9f6e68,1
|
| 738 |
+
np.float64,0x3fe411a834682350,0x3fe9e9103854f057,1
|
| 739 |
+
np.float64,0xbfedf6ccdf7bed9a,0x3fe2f77ad6543246,1
|
| 740 |
+
np.float64,0xbfe8788a44f0f114,0x3fe7172f3aa0c742,1
|
| 741 |
+
np.float64,0xbfce728f173ce520,0x3fef1954083bea04,1
|
| 742 |
+
np.float64,0xbfd64dd0acac9ba2,0x3fee138c3293c246,1
|
| 743 |
+
np.float64,0xbfe00669f5600cd4,0x3fec121443945350,1
|
| 744 |
+
np.float64,0xbfe7152ba2ee2a58,0x3fe8079465d09846,1
|
| 745 |
+
np.float64,0x3fe8654d8f70ca9c,0x3fe7247c94f09596,1
|
| 746 |
+
np.float64,0x3fea68045cf4d008,0x3fe5b58cfe81a243,1
|
| 747 |
+
np.float64,0xbfcd4779073a8ef4,0x3fef2a9d78153fa5,1
|
| 748 |
+
np.float64,0xbfdb4456e5b688ae,0x3fed23b11614203f,1
|
| 749 |
+
np.float64,0x3fcb5d59cd36bab0,0x3fef45818216a515,1
|
| 750 |
+
np.float64,0xbfd914ff5ab229fe,0x3fed92e73746fea8,1
|
| 751 |
+
np.float64,0x3fe4d211db69a424,0x3fe97653f433d15f,1
|
| 752 |
+
np.float64,0xbfdbbb9224b77724,0x3fed0adb593dde80,1
|
| 753 |
+
np.float64,0x3fd424ceafa8499c,0x3fee6d9124795d33,1
|
| 754 |
+
np.float64,0x3feb5968f976b2d2,0x3fe501d116efbf54,1
|
| 755 |
+
np.float64,0x3fee7d92a2fcfb26,0x3fe28a479b6a9dcf,1
|
| 756 |
+
np.float64,0x3fc308e9972611d0,0x3fefa595f4df0c89,1
|
| 757 |
+
np.float64,0x3fda79cd77b4f39c,0x3fed4cf8e69ba1f8,1
|
| 758 |
+
np.float64,0x3fcbcf42d5379e88,0x3fef3f6a6a77c187,1
|
| 759 |
+
np.float64,0x3fe13a1da662743c,0x3feb79504faea888,1
|
| 760 |
+
np.float64,0xbfee4435f07c886c,0x3fe2b8ea98d2fc29,1
|
| 761 |
+
np.float64,0x3fd65d68ccacbad0,0x3fee10e1ac7ada89,1
|
| 762 |
+
np.float64,0x3fef2f89bb7e5f14,0x3fe1f81e882cc3f4,1
|
| 763 |
+
np.float64,0xbfef0a7769fe14ef,0x3fe216bf384fc646,1
|
| 764 |
+
np.float64,0x3fc065277320ca50,0x3fefbce44835c193,1
|
| 765 |
+
np.float64,0x3fe9c1a74d73834e,0x3fe62e9ee0c2f2bf,1
|
| 766 |
+
np.float64,0x3fd9d96e5db3b2dc,0x3fed6cd88eb51f6a,1
|
| 767 |
+
np.float64,0x3fe02bf1c56057e4,0x3febfffc24b5a7ba,1
|
| 768 |
+
np.float64,0xbfd6814350ad0286,0x3fee0ab9ad318b84,1
|
| 769 |
+
np.float64,0x3f9fcbec583f97c0,0x3feffc0d0f1d8e75,1
|
| 770 |
+
np.float64,0x3fe23524e5e46a4a,0x3feaf55372949a06,1
|
| 771 |
+
np.float64,0xbfbdc95f6a3b92c0,0x3fefc89c21d44995,1
|
| 772 |
+
np.float64,0x3fe961bb9cf2c378,0x3fe6735d6e1cca58,1
|
| 773 |
+
np.float64,0xbfe8f1c370f1e387,0x3fe6c29d1be8bee9,1
|
| 774 |
+
np.float64,0x3fd880d43ab101a8,0x3fedaee3c7ccfc96,1
|
| 775 |
+
np.float64,0xbfedb37005fb66e0,0x3fe32d91ef2e3bd3,1
|
| 776 |
+
np.float64,0xfdce287bfb9c5,0x3ff0000000000000,1
|
| 777 |
+
np.float64,0x9aa1b9e735437,0x3ff0000000000000,1
|
| 778 |
+
np.float64,0x6beac6e0d7d59,0x3ff0000000000000,1
|
| 779 |
+
np.float64,0x47457aae8e8b0,0x3ff0000000000000,1
|
| 780 |
+
np.float64,0x35ff13b46bfe3,0x3ff0000000000000,1
|
| 781 |
+
np.float64,0xb9c0c82b73819,0x3ff0000000000000,1
|
| 782 |
+
np.float64,0x1a8dc21a351b9,0x3ff0000000000000,1
|
| 783 |
+
np.float64,0x7e87ef6afd0ff,0x3ff0000000000000,1
|
| 784 |
+
np.float64,0x620a6588c414d,0x3ff0000000000000,1
|
| 785 |
+
np.float64,0x7f366000fe6e,0x3ff0000000000000,1
|
| 786 |
+
np.float64,0x787e39f4f0fc8,0x3ff0000000000000,1
|
| 787 |
+
np.float64,0xf5134f1fea26a,0x3ff0000000000000,1
|
| 788 |
+
np.float64,0xbce700ef79ce0,0x3ff0000000000000,1
|
| 789 |
+
np.float64,0x144d7cc8289b1,0x3ff0000000000000,1
|
| 790 |
+
np.float64,0xb9fbc5b973f79,0x3ff0000000000000,1
|
| 791 |
+
np.float64,0xc3d6292d87ac5,0x3ff0000000000000,1
|
| 792 |
+
np.float64,0xc1084e618210a,0x3ff0000000000000,1
|
| 793 |
+
np.float64,0xb6b9eca56d73e,0x3ff0000000000000,1
|
| 794 |
+
np.float64,0xc7ac4b858f58a,0x3ff0000000000000,1
|
| 795 |
+
np.float64,0x516d75d2a2daf,0x3ff0000000000000,1
|
| 796 |
+
np.float64,0x9dc089d93b811,0x3ff0000000000000,1
|
| 797 |
+
np.float64,0x7b5f2840f6be6,0x3ff0000000000000,1
|
| 798 |
+
np.float64,0x121d3ce8243a9,0x3ff0000000000000,1
|
| 799 |
+
np.float64,0xf0be0337e17c1,0x3ff0000000000000,1
|
| 800 |
+
np.float64,0xff58a5cbfeb15,0x3ff0000000000000,1
|
| 801 |
+
np.float64,0xdaf1d07fb5e3a,0x3ff0000000000000,1
|
| 802 |
+
np.float64,0x61d95382c3b2b,0x3ff0000000000000,1
|
| 803 |
+
np.float64,0xe4df943fc9bf3,0x3ff0000000000000,1
|
| 804 |
+
np.float64,0xf72ac2bdee559,0x3ff0000000000000,1
|
| 805 |
+
np.float64,0x12dafbf625b60,0x3ff0000000000000,1
|
| 806 |
+
np.float64,0xee11d427dc23b,0x3ff0000000000000,1
|
| 807 |
+
np.float64,0xf4f8eb37e9f1e,0x3ff0000000000000,1
|
| 808 |
+
np.float64,0xad7cb5df5af97,0x3ff0000000000000,1
|
| 809 |
+
np.float64,0x59fc9b06b3f94,0x3ff0000000000000,1
|
| 810 |
+
np.float64,0x3c3e65e4787ce,0x3ff0000000000000,1
|
| 811 |
+
np.float64,0xe37bc993c6f79,0x3ff0000000000000,1
|
| 812 |
+
np.float64,0x13bd6330277ad,0x3ff0000000000000,1
|
| 813 |
+
np.float64,0x56cc2800ad986,0x3ff0000000000000,1
|
| 814 |
+
np.float64,0x6203b8fcc4078,0x3ff0000000000000,1
|
| 815 |
+
np.float64,0x75c7c8b8eb8fa,0x3ff0000000000000,1
|
| 816 |
+
np.float64,0x5ebf8e00bd7f2,0x3ff0000000000000,1
|
| 817 |
+
np.float64,0xda81f2f1b503f,0x3ff0000000000000,1
|
| 818 |
+
np.float64,0x6adb17d6d5b64,0x3ff0000000000000,1
|
| 819 |
+
np.float64,0x1ba68eee374d3,0x3ff0000000000000,1
|
| 820 |
+
np.float64,0xeecf6fbbdd9ee,0x3ff0000000000000,1
|
| 821 |
+
np.float64,0x24d6dd8e49add,0x3ff0000000000000,1
|
| 822 |
+
np.float64,0xdf7cb81bbef97,0x3ff0000000000000,1
|
| 823 |
+
np.float64,0xafd7be1b5faf8,0x3ff0000000000000,1
|
| 824 |
+
np.float64,0xdb90ca35b721a,0x3ff0000000000000,1
|
| 825 |
+
np.float64,0xa72903a14e521,0x3ff0000000000000,1
|
| 826 |
+
np.float64,0x14533ee028a7,0x3ff0000000000000,1
|
| 827 |
+
np.float64,0x7951540cf2a2b,0x3ff0000000000000,1
|
| 828 |
+
np.float64,0x22882be045106,0x3ff0000000000000,1
|
| 829 |
+
np.float64,0x136270d626c4f,0x3ff0000000000000,1
|
| 830 |
+
np.float64,0x6a0f5744d41ec,0x3ff0000000000000,1
|
| 831 |
+
np.float64,0x21e0d1aa43c1b,0x3ff0000000000000,1
|
| 832 |
+
np.float64,0xee544155dca88,0x3ff0000000000000,1
|
| 833 |
+
np.float64,0xcbe8aac797d16,0x3ff0000000000000,1
|
| 834 |
+
np.float64,0x6c065e80d80e,0x3ff0000000000000,1
|
| 835 |
+
np.float64,0xe57f0411cafe1,0x3ff0000000000000,1
|
| 836 |
+
np.float64,0xdec3a6bdbd875,0x3ff0000000000000,1
|
| 837 |
+
np.float64,0xf4d23a0fe9a48,0x3ff0000000000000,1
|
| 838 |
+
np.float64,0xda77ef47b4efe,0x3ff0000000000000,1
|
| 839 |
+
np.float64,0x8c405c9b1880c,0x3ff0000000000000,1
|
| 840 |
+
np.float64,0x4eced5149d9db,0x3ff0000000000000,1
|
| 841 |
+
np.float64,0x16b6552c2d6cc,0x3ff0000000000000,1
|
| 842 |
+
np.float64,0x6fbc262cdf785,0x3ff0000000000000,1
|
| 843 |
+
np.float64,0x628c3844c5188,0x3ff0000000000000,1
|
| 844 |
+
np.float64,0x6d827d2cdb050,0x3ff0000000000000,1
|
| 845 |
+
np.float64,0xd1bfdf29a37fc,0x3ff0000000000000,1
|
| 846 |
+
np.float64,0xd85400fdb0a80,0x3ff0000000000000,1
|
| 847 |
+
np.float64,0xcc420b2d98842,0x3ff0000000000000,1
|
| 848 |
+
np.float64,0xac41d21b5883b,0x3ff0000000000000,1
|
| 849 |
+
np.float64,0x432f18d4865e4,0x3ff0000000000000,1
|
| 850 |
+
np.float64,0xe7e89a1bcfd14,0x3ff0000000000000,1
|
| 851 |
+
np.float64,0x9b1141d536228,0x3ff0000000000000,1
|
| 852 |
+
np.float64,0x6805f662d00bf,0x3ff0000000000000,1
|
| 853 |
+
np.float64,0xc76552358ecab,0x3ff0000000000000,1
|
| 854 |
+
np.float64,0x4ae8ffee95d21,0x3ff0000000000000,1
|
| 855 |
+
np.float64,0x4396c096872d9,0x3ff0000000000000,1
|
| 856 |
+
np.float64,0x6e8e55d4dd1cb,0x3ff0000000000000,1
|
| 857 |
+
np.float64,0x4c2e33dc985c7,0x3ff0000000000000,1
|
| 858 |
+
np.float64,0xbce814a579d03,0x3ff0000000000000,1
|
| 859 |
+
np.float64,0x911681b5222d0,0x3ff0000000000000,1
|
| 860 |
+
np.float64,0x5f90a4b2bf215,0x3ff0000000000000,1
|
| 861 |
+
np.float64,0x26f76be84deee,0x3ff0000000000000,1
|
| 862 |
+
np.float64,0xb2f7536165eeb,0x3ff0000000000000,1
|
| 863 |
+
np.float64,0x4de4e6089bc9d,0x3ff0000000000000,1
|
| 864 |
+
np.float64,0xf2e016afe5c03,0x3ff0000000000000,1
|
| 865 |
+
np.float64,0xb9b7b949736f7,0x3ff0000000000000,1
|
| 866 |
+
np.float64,0x3363ea1866c7e,0x3ff0000000000000,1
|
| 867 |
+
np.float64,0xd1a3bd6ba3478,0x3ff0000000000000,1
|
| 868 |
+
np.float64,0xae89f3595d13f,0x3ff0000000000000,1
|
| 869 |
+
np.float64,0xddbd9601bb7c,0x3ff0000000000000,1
|
| 870 |
+
np.float64,0x5de41a06bbc84,0x3ff0000000000000,1
|
| 871 |
+
np.float64,0xfd58c86dfab19,0x3ff0000000000000,1
|
| 872 |
+
np.float64,0x24922e8c49247,0x3ff0000000000000,1
|
| 873 |
+
np.float64,0xcda040339b408,0x3ff0000000000000,1
|
| 874 |
+
np.float64,0x5fe500b2bfca1,0x3ff0000000000000,1
|
| 875 |
+
np.float64,0x9214abb924296,0x3ff0000000000000,1
|
| 876 |
+
np.float64,0x800609fe0a2c13fd,0x3ff0000000000000,1
|
| 877 |
+
np.float64,0x800c7c6fe518f8e0,0x3ff0000000000000,1
|
| 878 |
+
np.float64,0x800a1a9491b4352a,0x3ff0000000000000,1
|
| 879 |
+
np.float64,0x800b45e0e8968bc2,0x3ff0000000000000,1
|
| 880 |
+
np.float64,0x8008497e57d092fd,0x3ff0000000000000,1
|
| 881 |
+
np.float64,0x800b9c0af0173816,0x3ff0000000000000,1
|
| 882 |
+
np.float64,0x800194cccb43299a,0x3ff0000000000000,1
|
| 883 |
+
np.float64,0x8001c91ef183923f,0x3ff0000000000000,1
|
| 884 |
+
np.float64,0x800f25b5ccde4b6c,0x3ff0000000000000,1
|
| 885 |
+
np.float64,0x800ce63ccc79cc7a,0x3ff0000000000000,1
|
| 886 |
+
np.float64,0x800d8fb2e83b1f66,0x3ff0000000000000,1
|
| 887 |
+
np.float64,0x80083cd06f7079a1,0x3ff0000000000000,1
|
| 888 |
+
np.float64,0x800823598e9046b3,0x3ff0000000000000,1
|
| 889 |
+
np.float64,0x8001c1319de38264,0x3ff0000000000000,1
|
| 890 |
+
np.float64,0x800f2b68543e56d1,0x3ff0000000000000,1
|
| 891 |
+
np.float64,0x80022a4f4364549f,0x3ff0000000000000,1
|
| 892 |
+
np.float64,0x800f51badf7ea376,0x3ff0000000000000,1
|
| 893 |
+
np.float64,0x8003fbf31e27f7e7,0x3ff0000000000000,1
|
| 894 |
+
np.float64,0x800d4c00e2fa9802,0x3ff0000000000000,1
|
| 895 |
+
np.float64,0x800023b974804774,0x3ff0000000000000,1
|
| 896 |
+
np.float64,0x800860778990c0ef,0x3ff0000000000000,1
|
| 897 |
+
np.float64,0x800a15c241542b85,0x3ff0000000000000,1
|
| 898 |
+
np.float64,0x8003097d9dc612fc,0x3ff0000000000000,1
|
| 899 |
+
np.float64,0x800d77d8541aefb1,0x3ff0000000000000,1
|
| 900 |
+
np.float64,0x80093804ab52700a,0x3ff0000000000000,1
|
| 901 |
+
np.float64,0x800d2b3bfd7a5678,0x3ff0000000000000,1
|
| 902 |
+
np.float64,0x800da24bcd5b4498,0x3ff0000000000000,1
|
| 903 |
+
np.float64,0x8006eee1c28dddc4,0x3ff0000000000000,1
|
| 904 |
+
np.float64,0x80005137fa40a271,0x3ff0000000000000,1
|
| 905 |
+
np.float64,0x8007a3fbc22f47f8,0x3ff0000000000000,1
|
| 906 |
+
np.float64,0x800dcd97071b9b2e,0x3ff0000000000000,1
|
| 907 |
+
np.float64,0x80065b36048cb66d,0x3ff0000000000000,1
|
| 908 |
+
np.float64,0x8004206ba72840d8,0x3ff0000000000000,1
|
| 909 |
+
np.float64,0x8007e82b98cfd058,0x3ff0000000000000,1
|
| 910 |
+
np.float64,0x8001a116ed23422f,0x3ff0000000000000,1
|
| 911 |
+
np.float64,0x800c69e9ff18d3d4,0x3ff0000000000000,1
|
| 912 |
+
np.float64,0x8003843688e7086e,0x3ff0000000000000,1
|
| 913 |
+
np.float64,0x800335e3b8866bc8,0x3ff0000000000000,1
|
| 914 |
+
np.float64,0x800e3308f0bc6612,0x3ff0000000000000,1
|
| 915 |
+
np.float64,0x8002a9ec55c553d9,0x3ff0000000000000,1
|
| 916 |
+
np.float64,0x80001c2084e03842,0x3ff0000000000000,1
|
| 917 |
+
np.float64,0x800bc2bbd8d78578,0x3ff0000000000000,1
|
| 918 |
+
np.float64,0x800ae6bcc555cd7a,0x3ff0000000000000,1
|
| 919 |
+
np.float64,0x80083f7a13907ef5,0x3ff0000000000000,1
|
| 920 |
+
np.float64,0x800d83ed76db07db,0x3ff0000000000000,1
|
| 921 |
+
np.float64,0x800a12251974244b,0x3ff0000000000000,1
|
| 922 |
+
np.float64,0x800a69c95714d393,0x3ff0000000000000,1
|
| 923 |
+
np.float64,0x800cd5a85639ab51,0x3ff0000000000000,1
|
| 924 |
+
np.float64,0x800e0e1837bc1c31,0x3ff0000000000000,1
|
| 925 |
+
np.float64,0x8007b5ca39ef6b95,0x3ff0000000000000,1
|
| 926 |
+
np.float64,0x800cf961cad9f2c4,0x3ff0000000000000,1
|
| 927 |
+
np.float64,0x80066e8fc14cdd20,0x3ff0000000000000,1
|
| 928 |
+
np.float64,0x8001cb8c7b43971a,0x3ff0000000000000,1
|
| 929 |
+
np.float64,0x800002df68a005c0,0x3ff0000000000000,1
|
| 930 |
+
np.float64,0x8003e6681567ccd1,0x3ff0000000000000,1
|
| 931 |
+
np.float64,0x800b039126b60723,0x3ff0000000000000,1
|
| 932 |
+
np.float64,0x800d2e1b663a5c37,0x3ff0000000000000,1
|
| 933 |
+
np.float64,0x800188b3e2a31169,0x3ff0000000000000,1
|
| 934 |
+
np.float64,0x8001f272e943e4e7,0x3ff0000000000000,1
|
| 935 |
+
np.float64,0x800d7f53607afea7,0x3ff0000000000000,1
|
| 936 |
+
np.float64,0x80092cafa4f25960,0x3ff0000000000000,1
|
| 937 |
+
np.float64,0x800fc009f07f8014,0x3ff0000000000000,1
|
| 938 |
+
np.float64,0x8003da896507b514,0x3ff0000000000000,1
|
| 939 |
+
np.float64,0x800d4d1b4c3a9a37,0x3ff0000000000000,1
|
| 940 |
+
np.float64,0x8007a835894f506c,0x3ff0000000000000,1
|
| 941 |
+
np.float64,0x80057ba0522af741,0x3ff0000000000000,1
|
| 942 |
+
np.float64,0x8009b7054b336e0b,0x3ff0000000000000,1
|
| 943 |
+
np.float64,0x800b2c6c125658d9,0x3ff0000000000000,1
|
| 944 |
+
np.float64,0x8008b1840ad16308,0x3ff0000000000000,1
|
| 945 |
+
np.float64,0x8007ea0e3befd41d,0x3ff0000000000000,1
|
| 946 |
+
np.float64,0x800dd658683bacb1,0x3ff0000000000000,1
|
| 947 |
+
np.float64,0x8008cda48fd19b49,0x3ff0000000000000,1
|
| 948 |
+
np.float64,0x8003acca14c75995,0x3ff0000000000000,1
|
| 949 |
+
np.float64,0x8008bd152d717a2b,0x3ff0000000000000,1
|
| 950 |
+
np.float64,0x80010d1ea3621a3e,0x3ff0000000000000,1
|
| 951 |
+
np.float64,0x800130b78b826170,0x3ff0000000000000,1
|
| 952 |
+
np.float64,0x8002cf3a46e59e75,0x3ff0000000000000,1
|
| 953 |
+
np.float64,0x800b76e7fa76edd0,0x3ff0000000000000,1
|
| 954 |
+
np.float64,0x800e065fe1dc0cc0,0x3ff0000000000000,1
|
| 955 |
+
np.float64,0x8000dd527ea1baa6,0x3ff0000000000000,1
|
| 956 |
+
np.float64,0x80032cb234665965,0x3ff0000000000000,1
|
| 957 |
+
np.float64,0x800affc1acb5ff84,0x3ff0000000000000,1
|
| 958 |
+
np.float64,0x80074be23fee97c5,0x3ff0000000000000,1
|
| 959 |
+
np.float64,0x8004f83eafc9f07e,0x3ff0000000000000,1
|
| 960 |
+
np.float64,0x800b02a115560543,0x3ff0000000000000,1
|
| 961 |
+
np.float64,0x800b324a55766495,0x3ff0000000000000,1
|
| 962 |
+
np.float64,0x800ffbcfd69ff7a0,0x3ff0000000000000,1
|
| 963 |
+
np.float64,0x800830bc7b906179,0x3ff0000000000000,1
|
| 964 |
+
np.float64,0x800cbafe383975fd,0x3ff0000000000000,1
|
| 965 |
+
np.float64,0x8001ee42bfe3dc86,0x3ff0000000000000,1
|
| 966 |
+
np.float64,0x8005b00fdc0b6020,0x3ff0000000000000,1
|
| 967 |
+
np.float64,0x8005e7addd0bcf5c,0x3ff0000000000000,1
|
| 968 |
+
np.float64,0x8001ae4cb0635c9a,0x3ff0000000000000,1
|
| 969 |
+
np.float64,0x80098a9941131533,0x3ff0000000000000,1
|
| 970 |
+
np.float64,0x800334c929466993,0x3ff0000000000000,1
|
| 971 |
+
np.float64,0x8009568239d2ad05,0x3ff0000000000000,1
|
| 972 |
+
np.float64,0x800f0639935e0c73,0x3ff0000000000000,1
|
| 973 |
+
np.float64,0x800cebce7499d79d,0x3ff0000000000000,1
|
| 974 |
+
np.float64,0x800482ee4c2905dd,0x3ff0000000000000,1
|
| 975 |
+
np.float64,0x8007b7bd9e2f6f7c,0x3ff0000000000000,1
|
| 976 |
+
np.float64,0x3fe654469f2ca88d,0x3fe8853f6c01ffb3,1
|
| 977 |
+
np.float64,0x3feb4d7297369ae5,0x3fe50ad5bb621408,1
|
| 978 |
+
np.float64,0x3feef53ba43dea77,0x3fe2283f356f8658,1
|
| 979 |
+
np.float64,0x3fddf564eabbeaca,0x3fec8ec0e0dead9c,1
|
| 980 |
+
np.float64,0x3fd3a69078274d21,0x3fee80e05c320000,1
|
| 981 |
+
np.float64,0x3fecdafe5d39b5fd,0x3fe3d91a5d440fd9,1
|
| 982 |
+
np.float64,0x3fd93286bc32650d,0x3fed8d40696cd10e,1
|
| 983 |
+
np.float64,0x3fc0d34eb821a69d,0x3fefb954023d4284,1
|
| 984 |
+
np.float64,0x3fc7b4b9a02f6973,0x3fef73e8739787ce,1
|
| 985 |
+
np.float64,0x3fe08c839a611907,0x3febd0bc6f5641cd,1
|
| 986 |
+
np.float64,0x3fb3d1758627a2eb,0x3fefe776f6183f96,1
|
| 987 |
+
np.float64,0x3fef93c9ff3f2794,0x3fe1a4d2f622627d,1
|
| 988 |
+
np.float64,0x3fea8d0041351a01,0x3fe59a52a1c78c9e,1
|
| 989 |
+
np.float64,0x3fe3e26a30e7c4d4,0x3fea04ad3e0bbf8d,1
|
| 990 |
+
np.float64,0x3fe5a34c9f6b4699,0x3fe8f57c5ccd1eab,1
|
| 991 |
+
np.float64,0x3fc21ef859243df1,0x3fefae0b68a3a2e7,1
|
| 992 |
+
np.float64,0x3fed7dd585fafbab,0x3fe35860041e5b0d,1
|
| 993 |
+
np.float64,0x3fe5abacf22b575a,0x3fe8f03d8b6ef0f2,1
|
| 994 |
+
np.float64,0x3fe426451f284c8a,0x3fe9dcf21f13205b,1
|
| 995 |
+
np.float64,0x3fc01f6456203ec9,0x3fefbf19e2a8e522,1
|
| 996 |
+
np.float64,0x3fe1cf2772239e4f,0x3feb2bbd645c7697,1
|
| 997 |
+
np.float64,0x3fd18c4ace231896,0x3feecdfdd086c110,1
|
| 998 |
+
np.float64,0x3fe8387d5b7070fb,0x3fe74358f2ec4910,1
|
| 999 |
+
np.float64,0x3fdce51c2239ca38,0x3feccb2ae5459632,1
|
| 1000 |
+
np.float64,0x3fe5b0f2e4eb61e6,0x3fe8ecef4dbe4277,1
|
| 1001 |
+
np.float64,0x3fe1ceeb08a39dd6,0x3feb2bdd4dcfb3df,1
|
| 1002 |
+
np.float64,0x3febc5899d778b13,0x3fe4afc8dd8ad228,1
|
| 1003 |
+
np.float64,0x3fe7a47fbe2f48ff,0x3fe7a7fd9b352ea5,1
|
| 1004 |
+
np.float64,0x3fe7f74e1fafee9c,0x3fe76feb2755b247,1
|
| 1005 |
+
np.float64,0x3fe2bfad04e57f5a,0x3feaa9b46adddaeb,1
|
| 1006 |
+
np.float64,0x3fd06a090320d412,0x3feef40c334f8fba,1
|
| 1007 |
+
np.float64,0x3fdc97297d392e53,0x3fecdc16a3e22fcb,1
|
| 1008 |
+
np.float64,0x3fdc1a3f3838347e,0x3fecf6db2769d404,1
|
| 1009 |
+
np.float64,0x3fcca90096395201,0x3fef338156fcd218,1
|
| 1010 |
+
np.float64,0x3fed464733fa8c8e,0x3fe38483f0465d91,1
|
| 1011 |
+
np.float64,0x3fe7e067d82fc0d0,0x3fe77f7c8c9de896,1
|
| 1012 |
+
np.float64,0x3fc014fa0b2029f4,0x3fefbf6d84c933f8,1
|
| 1013 |
+
np.float64,0x3fd3bf1524277e2a,0x3fee7d2997b74dec,1
|
| 1014 |
+
np.float64,0x3fec153b86782a77,0x3fe472bb5497bb2a,1
|
| 1015 |
+
np.float64,0x3fd3e4d9d5a7c9b4,0x3fee776842691902,1
|
| 1016 |
+
np.float64,0x3fea6c0e2c74d81c,0x3fe5b2954cb458d9,1
|
| 1017 |
+
np.float64,0x3fee8f6a373d1ed4,0x3fe27bb9e348125b,1
|
| 1018 |
+
np.float64,0x3fd30c6dd42618dc,0x3fee97d2cab2b0bc,1
|
| 1019 |
+
np.float64,0x3fe4f90e6d69f21d,0x3fe95ea3dd4007f2,1
|
| 1020 |
+
np.float64,0x3fe271d467e4e3a9,0x3fead470d6d4008b,1
|
| 1021 |
+
np.float64,0x3fef2983897e5307,0x3fe1fd1a4debe33b,1
|
| 1022 |
+
np.float64,0x3fe980cc83b30199,0x3fe65d2fb8a0eb46,1
|
| 1023 |
+
np.float64,0x3fdfdf53db3fbea8,0x3fec1cf95b2a1cc7,1
|
| 1024 |
+
np.float64,0x3fe4d5307ba9aa61,0x3fe974701b4156cb,1
|
| 1025 |
+
np.float64,0x3fdb4e2345b69c47,0x3fed21aa6c146512,1
|
| 1026 |
+
np.float64,0x3fe3f7830327ef06,0x3fe9f85f6c88c2a8,1
|
| 1027 |
+
np.float64,0x3fca915fb63522bf,0x3fef502b73a52ecf,1
|
| 1028 |
+
np.float64,0x3fe66d3709ecda6e,0x3fe87531d7372d7a,1
|
| 1029 |
+
np.float64,0x3fd86000bcb0c001,0x3fedb5018dd684ca,1
|
| 1030 |
+
np.float64,0x3fe516e5feea2dcc,0x3fe94c68b111404e,1
|
| 1031 |
+
np.float64,0x3fd83c53dd3078a8,0x3fedbb9e5dd9e165,1
|
| 1032 |
+
np.float64,0x3fedfeeb673bfdd7,0x3fe2f0f0253c5d5d,1
|
| 1033 |
+
np.float64,0x3fe0dc6f9c21b8df,0x3feba8e2452410c2,1
|
| 1034 |
+
np.float64,0x3fbe154d643c2a9b,0x3fefc780a9357457,1
|
| 1035 |
+
np.float64,0x3fe5f63986abec73,0x3fe8c1434951a40a,1
|
| 1036 |
+
np.float64,0x3fbce0e50839c1ca,0x3fefcbeeaa27de75,1
|
| 1037 |
+
np.float64,0x3fd7ef5c5c2fdeb9,0x3fedc9c3022495b3,1
|
| 1038 |
+
np.float64,0x3fc1073914220e72,0x3fefb79de80fc0fd,1
|
| 1039 |
+
np.float64,0x3fe1a93c3d235278,0x3feb3fb21f86ac67,1
|
| 1040 |
+
np.float64,0x3fe321ee53e643dd,0x3fea72e2999f1e22,1
|
| 1041 |
+
np.float64,0x3fa881578c3102af,0x3feff69e6e51e0d6,1
|
| 1042 |
+
np.float64,0x3fd313482a262690,0x3fee96d161199495,1
|
| 1043 |
+
np.float64,0x3fe7272cd6ae4e5a,0x3fe7fbacbd0d8f43,1
|
| 1044 |
+
np.float64,0x3fd6cf4015ad9e80,0x3fedfd3513d544b8,1
|
| 1045 |
+
np.float64,0x3fc67b7e6d2cf6fd,0x3fef81f5c16923a4,1
|
| 1046 |
+
np.float64,0x3fa1999c14233338,0x3feffb2913a14184,1
|
| 1047 |
+
np.float64,0x3fc74eb8dd2e9d72,0x3fef78909a138e3c,1
|
| 1048 |
+
np.float64,0x3fc0b9274921724f,0x3fefba2ebd5f3e1c,1
|
| 1049 |
+
np.float64,0x3fd53fa156aa7f43,0x3fee40a18e952e88,1
|
| 1050 |
+
np.float64,0x3feaccbca4b59979,0x3fe56b22b33eb713,1
|
| 1051 |
+
np.float64,0x3fe6a01e3a2d403c,0x3fe8543fbd820ecc,1
|
| 1052 |
+
np.float64,0x3fd392a869a72551,0x3fee83e0ffe0e8de,1
|
| 1053 |
+
np.float64,0x3fe44d8928689b12,0x3fe9c5bf3c8fffdb,1
|
| 1054 |
+
np.float64,0x3fca3f209f347e41,0x3fef5461b6fa0924,1
|
| 1055 |
+
np.float64,0x3fee9e84b07d3d09,0x3fe26f638f733549,1
|
| 1056 |
+
np.float64,0x3faf49acb03e9359,0x3feff0b583cd8c48,1
|
| 1057 |
+
np.float64,0x3fea874b2af50e96,0x3fe59e882fa6febf,1
|
| 1058 |
+
np.float64,0x3fc50b72772a16e5,0x3fef918777dc41be,1
|
| 1059 |
+
np.float64,0x3fe861d1d4f0c3a4,0x3fe726e44d9d42c2,1
|
| 1060 |
+
np.float64,0x3fcadd2e2535ba5c,0x3fef4c3e2b56da38,1
|
| 1061 |
+
np.float64,0x3fea59c29cb4b385,0x3fe5c0043e586439,1
|
| 1062 |
+
np.float64,0x3fc1ffef0d23ffde,0x3fefaf22be452d13,1
|
| 1063 |
+
np.float64,0x3fc2d8dbc125b1b8,0x3fefa75b646d8e4e,1
|
| 1064 |
+
np.float64,0x3fd66c6471acd8c9,0x3fee0e5038b895c0,1
|
| 1065 |
+
np.float64,0x3fd0854adfa10a96,0x3feef0945bcc5c99,1
|
| 1066 |
+
np.float64,0x3feaac7076f558e1,0x3fe58316c23a82ad,1
|
| 1067 |
+
np.float64,0x3fdda49db3bb493b,0x3feca0e347c0ad6f,1
|
| 1068 |
+
np.float64,0x3fe43a539de874a7,0x3fe9d11d722d4822,1
|
| 1069 |
+
np.float64,0x3feeee3ebbfddc7d,0x3fe22dffd251e9af,1
|
| 1070 |
+
np.float64,0x3f8ee2c5b03dc58b,0x3fefff11855a7b6c,1
|
| 1071 |
+
np.float64,0x3fcd7107c63ae210,0x3fef2840bb55ca52,1
|
| 1072 |
+
np.float64,0x3f8d950d203b2a1a,0x3fefff253a08e40e,1
|
| 1073 |
+
np.float64,0x3fd40a5e57a814bd,0x3fee71a633c761fc,1
|
| 1074 |
+
np.float64,0x3fee836ec83d06de,0x3fe28580975be2fd,1
|
| 1075 |
+
np.float64,0x3fd7bbe87f2f77d1,0x3fedd31f661890cc,1
|
| 1076 |
+
np.float64,0xbfe05bf138a0b7e2,0x3febe8a000d96e47,1
|
| 1077 |
+
np.float64,0xbf88bddd90317bc0,0x3fefff66f6e2ff26,1
|
| 1078 |
+
np.float64,0xbfdc9cbb12393976,0x3fecdae2982335db,1
|
| 1079 |
+
np.float64,0xbfd85b4eccb0b69e,0x3fedb5e0dd87f702,1
|
| 1080 |
+
np.float64,0xbfe5c326cb2b864e,0x3fe8e180f525fa12,1
|
| 1081 |
+
np.float64,0xbfe381a0e4a70342,0x3fea3c8e5e3ab78e,1
|
| 1082 |
+
np.float64,0xbfe58d892c2b1b12,0x3fe9031551617aed,1
|
| 1083 |
+
np.float64,0xbfd7f3a52cafe74a,0x3fedc8fa97edd080,1
|
| 1084 |
+
np.float64,0xbfef3417bc7e682f,0x3fe1f45989f6a009,1
|
| 1085 |
+
np.float64,0xbfddfb8208bbf704,0x3fec8d5fa9970773,1
|
| 1086 |
+
np.float64,0xbfdab69bcc356d38,0x3fed40b2f6c347c6,1
|
| 1087 |
+
np.float64,0xbfed3f7cf17a7efa,0x3fe389e4ff4d9235,1
|
| 1088 |
+
np.float64,0xbfe47675d9a8ecec,0x3fe9ad6829a69e94,1
|
| 1089 |
+
np.float64,0xbfd030e2902061c6,0x3feefb3f811e024f,1
|
| 1090 |
+
np.float64,0xbfc376ac7226ed58,0x3fefa1798712b37e,1
|
| 1091 |
+
np.float64,0xbfdb7e54a0b6fcaa,0x3fed17a974c4bc28,1
|
| 1092 |
+
np.float64,0xbfdb7d5d5736faba,0x3fed17dcf31a8d84,1
|
| 1093 |
+
np.float64,0xbf876bd6502ed7c0,0x3fefff76dce6232c,1
|
| 1094 |
+
np.float64,0xbfd211e6c02423ce,0x3feebba41f0a1764,1
|
| 1095 |
+
np.float64,0xbfb443e3962887c8,0x3fefe658953629d4,1
|
| 1096 |
+
np.float64,0xbfe81b09e9b03614,0x3fe757882e4fdbae,1
|
| 1097 |
+
np.float64,0xbfdcb905d2b9720c,0x3fecd4c22cfe84e5,1
|
| 1098 |
+
np.float64,0xbfe3b62d99276c5b,0x3fea1e5520b3098d,1
|
| 1099 |
+
np.float64,0xbfbf05b25c3e0b68,0x3fefc3ecc04bca8e,1
|
| 1100 |
+
np.float64,0xbfdedc885b3db910,0x3fec59e22feb49f3,1
|
| 1101 |
+
np.float64,0xbfe33aa282667545,0x3fea64f2d55ec471,1
|
| 1102 |
+
np.float64,0xbfec84745a3908e9,0x3fe41cb3214e7044,1
|
| 1103 |
+
np.float64,0xbfddefdff1bbdfc0,0x3fec8fff88d4d0ec,1
|
| 1104 |
+
np.float64,0xbfd26ae6aca4d5ce,0x3feeaf208c7fedf6,1
|
| 1105 |
+
np.float64,0xbfee010591fc020b,0x3fe2ef3e57211a5e,1
|
| 1106 |
+
np.float64,0xbfb8cfddca319fb8,0x3fefd98d8f7918ed,1
|
| 1107 |
+
np.float64,0xbfe991648f3322c9,0x3fe6514e54670bae,1
|
| 1108 |
+
np.float64,0xbfee63fd087cc7fa,0x3fe29f1bfa3297cc,1
|
| 1109 |
+
np.float64,0xbfe1685942a2d0b2,0x3feb617f5f839eee,1
|
| 1110 |
+
np.float64,0xbfc6fc2fd62df860,0x3fef7c4698fd58cf,1
|
| 1111 |
+
np.float64,0xbfe42723d3a84e48,0x3fe9dc6ef7243e90,1
|
| 1112 |
+
np.float64,0xbfc3a7e89d274fd0,0x3fef9f99e3314e77,1
|
| 1113 |
+
np.float64,0xbfeb4c9521f6992a,0x3fe50b7c919bc6d8,1
|
| 1114 |
+
np.float64,0xbf707b34e020f680,0x3fefffef05e30264,1
|
| 1115 |
+
np.float64,0xbfc078478e20f090,0x3fefbc479305d5aa,1
|
| 1116 |
+
np.float64,0xbfd494ac4ca92958,0x3fee5c11f1cd8269,1
|
| 1117 |
+
np.float64,0xbfdaf888a035f112,0x3fed3346ae600469,1
|
| 1118 |
+
np.float64,0xbfa5d8ed502bb1e0,0x3feff88b0f262609,1
|
| 1119 |
+
np.float64,0xbfeec0cbfffd8198,0x3fe253543b2371cb,1
|
| 1120 |
+
np.float64,0xbfe594b5986b296b,0x3fe8fe9b39fb3940,1
|
| 1121 |
+
np.float64,0xbfc8ece7c631d9d0,0x3fef652bd0611ac7,1
|
| 1122 |
+
np.float64,0xbfd8ffeca0b1ffda,0x3fed96ebdf9b65cb,1
|
| 1123 |
+
np.float64,0xbfba9b221e353648,0x3fefd3cc21e2f15c,1
|
| 1124 |
+
np.float64,0xbfca63a52c34c74c,0x3fef52848eb9ed3b,1
|
| 1125 |
+
np.float64,0xbfe588e9b06b11d4,0x3fe905f7403e8881,1
|
| 1126 |
+
np.float64,0xbfc76f82db2edf04,0x3fef77138fe9bbc2,1
|
| 1127 |
+
np.float64,0xbfeeb3f334bd67e6,0x3fe25ddadb1096d6,1
|
| 1128 |
+
np.float64,0xbfbf2b64ce3e56c8,0x3fefc35a9555f6df,1
|
| 1129 |
+
np.float64,0xbfe9920e4ff3241c,0x3fe650d4ab8f5c42,1
|
| 1130 |
+
np.float64,0xbfb4a54c02294a98,0x3fefe55fc85ae5e9,1
|
| 1131 |
+
np.float64,0xbfe353b0c766a762,0x3fea56c02d17e4b7,1
|
| 1132 |
+
np.float64,0xbfd99961a4b332c4,0x3fed795fcd00dbf9,1
|
| 1133 |
+
np.float64,0xbfef191ddabe323c,0x3fe20aa79524f636,1
|
| 1134 |
+
np.float64,0xbfb25d060224ba10,0x3fefeaeee5cc8c0b,1
|
| 1135 |
+
np.float64,0xbfe6022428ec0448,0x3fe8b9b46e776194,1
|
| 1136 |
+
np.float64,0xbfed1a236cba3447,0x3fe3a76bee0d9861,1
|
| 1137 |
+
np.float64,0xbfc59671e72b2ce4,0x3fef8bc4daef6f14,1
|
| 1138 |
+
np.float64,0xbfdf2711703e4e22,0x3fec4886a8c9ceb5,1
|
| 1139 |
+
np.float64,0xbfeb7e207536fc41,0x3fe4e610c783f168,1
|
| 1140 |
+
np.float64,0xbfe6cdf5bcad9bec,0x3fe8365f8a59bc81,1
|
| 1141 |
+
np.float64,0xbfe55294adaaa52a,0x3fe927b0af5ccd09,1
|
| 1142 |
+
np.float64,0xbfdf4a88913e9512,0x3fec4036df58ba74,1
|
| 1143 |
+
np.float64,0xbfebb7efe4376fe0,0x3fe4ba276006992d,1
|
| 1144 |
+
np.float64,0xbfe09f29cfa13e54,0x3febc77f4f9c95e7,1
|
| 1145 |
+
np.float64,0xbfdf8c75653f18ea,0x3fec30ac924e4f46,1
|
| 1146 |
+
np.float64,0xbfefd601c7ffac04,0x3fe16d6f21bcb9c1,1
|
| 1147 |
+
np.float64,0xbfeae97ff5f5d300,0x3fe555bb5b87efe9,1
|
| 1148 |
+
np.float64,0xbfed427f02fa84fe,0x3fe387830db093bc,1
|
| 1149 |
+
np.float64,0xbfa33909cc267210,0x3feffa3a1bcb50dd,1
|
| 1150 |
+
np.float64,0xbfe9aa4bf5f35498,0x3fe63f6e98f6aa0f,1
|
| 1151 |
+
np.float64,0xbfe2d7349b25ae69,0x3fea9caa7c331e7e,1
|
| 1152 |
+
np.float64,0xbfcdbb2a3a3b7654,0x3fef2401c9659e4b,1
|
| 1153 |
+
np.float64,0xbfc8a90919315214,0x3fef686fe7fc0513,1
|
| 1154 |
+
np.float64,0xbfe62a98df2c5532,0x3fe89ff22a02cc6b,1
|
| 1155 |
+
np.float64,0xbfdc0f67b3b81ed0,0x3fecf928b637798f,1
|
| 1156 |
+
np.float64,0xbfebb32bf6f76658,0x3fe4bdc893c09698,1
|
| 1157 |
+
np.float64,0xbfec067996380cf3,0x3fe47e132741db97,1
|
| 1158 |
+
np.float64,0xbfd9774e1d32ee9c,0x3fed7ffe1e87c434,1
|
| 1159 |
+
np.float64,0xbfef989890bf3131,0x3fe1a0d025c80cf4,1
|
| 1160 |
+
np.float64,0xbfe59887e62b3110,0x3fe8fc382a3d4197,1
|
| 1161 |
+
np.float64,0xbfdea0a11e3d4142,0x3fec67b987e236ec,1
|
| 1162 |
+
np.float64,0xbfe2ec495825d892,0x3fea90efb231602d,1
|
| 1163 |
+
np.float64,0xbfb329c5c2265388,0x3fefe90f1b8209c3,1
|
| 1164 |
+
np.float64,0xbfdcd2dcd339a5ba,0x3feccf24c60b1478,1
|
| 1165 |
+
np.float64,0xbfe537ea18aa6fd4,0x3fe938237e217fe0,1
|
| 1166 |
+
np.float64,0xbfe8675ce170ceba,0x3fe723105925ce3a,1
|
| 1167 |
+
np.float64,0xbfd70723acae0e48,0x3fedf369ac070e65,1
|
| 1168 |
+
np.float64,0xbfea9d8692b53b0d,0x3fe58e1ee42e3fdb,1
|
| 1169 |
+
np.float64,0xbfcfeb96653fd72c,0x3fef029770033bdc,1
|
| 1170 |
+
np.float64,0xbfcc06c92d380d94,0x3fef3c69797d9b0a,1
|
| 1171 |
+
np.float64,0xbfe16b7c4f62d6f8,0x3feb5fdf9f0a9a07,1
|
| 1172 |
+
np.float64,0xbfed4d7a473a9af4,0x3fe37ecee27b1eb7,1
|
| 1173 |
+
np.float64,0xbfe6a6f6942d4ded,0x3fe84fccdf762b19,1
|
| 1174 |
+
np.float64,0xbfda46d867348db0,0x3fed572d928fa657,1
|
| 1175 |
+
np.float64,0xbfdbd9482db7b290,0x3fed049b5f907b52,1
|
| 1176 |
+
np.float64,0x7fe992ceb933259c,0xbfeb15af92aad70e,1
|
| 1177 |
+
np.float64,0x7fe3069204a60d23,0xbfe5eeff454240e9,1
|
| 1178 |
+
np.float64,0x7fe729dbf32e53b7,0xbfefe0528a330e4c,1
|
| 1179 |
+
np.float64,0x7fec504fb638a09e,0x3fd288e95dbedf65,1
|
| 1180 |
+
np.float64,0x7fe1d30167a3a602,0xbfeffc41f946fd02,1
|
| 1181 |
+
np.float64,0x7fed7f8ffd3aff1f,0x3fefe68ec604a19d,1
|
| 1182 |
+
np.float64,0x7fd2f23635a5e46b,0x3fea63032efbb447,1
|
| 1183 |
+
np.float64,0x7fd4c86db1a990da,0x3fdf6b9f7888db5d,1
|
| 1184 |
+
np.float64,0x7fe7554db6eeaa9a,0x3fe1b41476861bb0,1
|
| 1185 |
+
np.float64,0x7fe34e823ba69d03,0x3fefc435532e6294,1
|
| 1186 |
+
np.float64,0x7fec5c82fef8b905,0x3fef8f0c6473034f,1
|
| 1187 |
+
np.float64,0x7feba221bff74442,0xbfea95b81eb19b47,1
|
| 1188 |
+
np.float64,0x7fe74808a5ae9010,0xbfd3aa322917c3e5,1
|
| 1189 |
+
np.float64,0x7fdf41b7e0be836f,0x3fd14283c7147282,1
|
| 1190 |
+
np.float64,0x7fec09892f381311,0x3fe5240376ae484b,1
|
| 1191 |
+
np.float64,0x7faaf80bf435f017,0x3fe20227fa811423,1
|
| 1192 |
+
np.float64,0x7f8422d8402845b0,0x3fe911714593b8a0,1
|
| 1193 |
+
np.float64,0x7fd23a7fada474fe,0x3feff9f40aa37e9c,1
|
| 1194 |
+
np.float64,0x7fef4a4806fe948f,0x3fec6eca89cb4a62,1
|
| 1195 |
+
np.float64,0x7fe1e71cf763ce39,0xbfea6ac63f9ba457,1
|
| 1196 |
+
np.float64,0x7fe3e555be27caaa,0xbfe75b305d0dbbfd,1
|
| 1197 |
+
np.float64,0x7fcb8bac96371758,0xbfe8b126077f9d4c,1
|
| 1198 |
+
np.float64,0x7fc98e2c84331c58,0x3fef9092eb0bc85a,1
|
| 1199 |
+
np.float64,0x7fe947cf2b728f9d,0xbfebfff2c5b7d198,1
|
| 1200 |
+
np.float64,0x7feee8058c3dd00a,0xbfef21ebaae2eb17,1
|
| 1201 |
+
np.float64,0x7fef61d8d5bec3b1,0xbfdf1a032fb1c864,1
|
| 1202 |
+
np.float64,0x7fcf714b6f3ee296,0x3fe6fc89a8084098,1
|
| 1203 |
+
np.float64,0x7fa9a8b44c335168,0xbfeb16c149cea943,1
|
| 1204 |
+
np.float64,0x7fd175c482a2eb88,0xbfef64d341e73f88,1
|
| 1205 |
+
np.float64,0x7feab8e6a87571cc,0x3feb10069c397464,1
|
| 1206 |
+
np.float64,0x7fe3ade72de75bcd,0x3fd1753e333d5790,1
|
| 1207 |
+
np.float64,0x7fb26d87d224db0f,0xbfe753d36b18f4ca,1
|
| 1208 |
+
np.float64,0x7fdb7ef159b6fde2,0x3fe5c0a6044d3607,1
|
| 1209 |
+
np.float64,0x7fd5af86422b5f0c,0x3fe77193c95f6484,1
|
| 1210 |
+
np.float64,0x7fee9e00b07d3c00,0x3fe864d494596845,1
|
| 1211 |
+
np.float64,0x7fef927a147f24f3,0xbfe673b14715693d,1
|
| 1212 |
+
np.float64,0x7fd0aea63c215d4b,0xbfeff435f119fce9,1
|
| 1213 |
+
np.float64,0x7fd02e3796a05c6e,0x3fe4f7e3706e9a3d,1
|
| 1214 |
+
np.float64,0x7fd3ed61da27dac3,0xbfefef2f057f168c,1
|
| 1215 |
+
np.float64,0x7fefaca0d4ff5941,0x3fd3e8ad205cd4ab,1
|
| 1216 |
+
np.float64,0x7feb659e06f6cb3b,0x3fd64d803203e027,1
|
| 1217 |
+
np.float64,0x7fc94ccfaf32999e,0x3fee04922209369a,1
|
| 1218 |
+
np.float64,0x7feb4ec294f69d84,0xbfd102763a056c89,1
|
| 1219 |
+
np.float64,0x7fe2ada6ac655b4c,0x3fef4f6792aa6093,1
|
| 1220 |
+
np.float64,0x7fe5f40fdc2be81f,0xbfb4a6327186eee8,1
|
| 1221 |
+
np.float64,0x7fe7584bc3eeb097,0xbfd685b8ff94651d,1
|
| 1222 |
+
np.float64,0x7fe45d276be8ba4e,0x3fee53b13f7e442f,1
|
| 1223 |
+
np.float64,0x7fe6449b3d6c8935,0xbfe7e08bafa75251,1
|
| 1224 |
+
np.float64,0x7f8d62e6b03ac5cc,0x3fe73d30762f38fd,1
|
| 1225 |
+
np.float64,0x7fe3a76f72a74ede,0xbfeb48a28bc60968,1
|
| 1226 |
+
np.float64,0x7fd057706920aee0,0x3fdece8fa06f626c,1
|
| 1227 |
+
np.float64,0x7fe45ae158e8b5c2,0x3fe7a70f47b4d349,1
|
| 1228 |
+
np.float64,0x7fea8a5a983514b4,0x3fefb053d5f9ddd7,1
|
| 1229 |
+
np.float64,0x7fdd1e86ab3a3d0c,0x3fe3cded1b93816b,1
|
| 1230 |
+
np.float64,0x7fdb456108b68ac1,0xbfe37574c0b9bf8f,1
|
| 1231 |
+
np.float64,0x7fe972602432e4bf,0x3fef9a26e65ec01c,1
|
| 1232 |
+
np.float64,0x7fdbe2385637c470,0x3fed541df57969e1,1
|
| 1233 |
+
np.float64,0x7fe57f03602afe06,0x3fbd90f595cbbd94,1
|
| 1234 |
+
np.float64,0x7feb0ceb68f619d6,0xbfeae9cb8ee5261f,1
|
| 1235 |
+
np.float64,0x7fe6abfe6c6d57fc,0xbfef40a6edaca26f,1
|
| 1236 |
+
np.float64,0x7fe037ea08606fd3,0xbfda817d75858597,1
|
| 1237 |
+
np.float64,0x7fdd75a52dbaeb49,0x3feef2a0d91d6aa1,1
|
| 1238 |
+
np.float64,0x7fe8f9af66b1f35e,0xbfedfceef2a3bfc9,1
|
| 1239 |
+
np.float64,0x7fedf762b53beec4,0x3fd8b4f21ef69ee3,1
|
| 1240 |
+
np.float64,0x7fe99295b7f3252a,0x3feffc24d970383e,1
|
| 1241 |
+
np.float64,0x7fe797b0172f2f5f,0x3fee089aa56f7ce8,1
|
| 1242 |
+
np.float64,0x7fed89dcc97b13b9,0xbfcfa2bb0c3ea41f,1
|
| 1243 |
+
np.float64,0x7fae9e8d5c3d3d1a,0xbfe512ffe16c6b08,1
|
| 1244 |
+
np.float64,0x7fefaecbe27f5d97,0x3fbfc718a5e972f1,1
|
| 1245 |
+
np.float64,0x7fce0236d93c046d,0xbfa9b7cd790db256,1
|
| 1246 |
+
np.float64,0x7fa9689aac32d134,0x3feced501946628a,1
|
| 1247 |
+
np.float64,0x7feb1469e93628d3,0x3fef2a988e7673ed,1
|
| 1248 |
+
np.float64,0x7fdba78344b74f06,0xbfe092e78965b30c,1
|
| 1249 |
+
np.float64,0x7fece54c3fb9ca97,0x3fd3cfd184bed2e6,1
|
| 1250 |
+
np.float64,0x7fdb84212b370841,0xbfe25ebf2db6ee55,1
|
| 1251 |
+
np.float64,0x7fbe3e8bf23c7d17,0x3fe2ee72df573345,1
|
| 1252 |
+
np.float64,0x7fe43d9803687b2f,0xbfed2eff6a9e66a0,1
|
| 1253 |
+
np.float64,0x7fb0f9c00a21f37f,0x3feff70f3276fdb7,1
|
| 1254 |
+
np.float64,0x7fea0c6cbbb418d8,0xbfefa612494798b2,1
|
| 1255 |
+
np.float64,0x7fe4b3239e296646,0xbfe74dd959af8cdc,1
|
| 1256 |
+
np.float64,0x7fe5c6a773eb8d4e,0xbfd06944048f8d2b,1
|
| 1257 |
+
np.float64,0x7fb1c1278223824e,0xbfeb533a34655bde,1
|
| 1258 |
+
np.float64,0x7fd21c09ee243813,0xbfe921ccbc9255c3,1
|
| 1259 |
+
np.float64,0x7fe051020c20a203,0x3fbd519d700c1f2f,1
|
| 1260 |
+
np.float64,0x7fe0c76845e18ed0,0x3fefb9595191a31b,1
|
| 1261 |
+
np.float64,0x7fe6b0b57b6d616a,0xbf8c59a8ba5fcd9a,1
|
| 1262 |
+
np.float64,0x7fd386c460270d88,0x3fe8ffea5d1a5c46,1
|
| 1263 |
+
np.float64,0x7feeb884713d7108,0x3fee9b2247ef6c0d,1
|
| 1264 |
+
np.float64,0x7fd85f71b6b0bee2,0xbfefc30ec3e28f07,1
|
| 1265 |
+
np.float64,0x7fc341366426826c,0x3fd4234d35386d3b,1
|
| 1266 |
+
np.float64,0x7fe56482dd6ac905,0x3fe7189de6a50668,1
|
| 1267 |
+
np.float64,0x7fec67a2e3f8cf45,0xbfef86d0b940f37f,1
|
| 1268 |
+
np.float64,0x7fe38b202fe7163f,0x3feb90b75caa2030,1
|
| 1269 |
+
np.float64,0x7fdcbc64883978c8,0x3fed4f758fbf64d4,1
|
| 1270 |
+
np.float64,0x7fea5f0598f4be0a,0x3fdd503a417b3d4d,1
|
| 1271 |
+
np.float64,0x7fda3b6bcf3476d7,0x3fea6e9af3f7f9f5,1
|
| 1272 |
+
np.float64,0x7fc7d7896c2faf12,0x3fda2bebc36a2363,1
|
| 1273 |
+
np.float64,0x7fe7e8e2626fd1c4,0xbfe7d5e390c4cc3f,1
|
| 1274 |
+
np.float64,0x7fde0f3d7abc1e7a,0xbfede7a0ecfa3606,1
|
| 1275 |
+
np.float64,0x7fc692b8f52d2571,0x3feff0cd7ab6f61b,1
|
| 1276 |
+
np.float64,0xff92d1fce825a400,0xbfc921c36fc014fa,1
|
| 1277 |
+
np.float64,0xffdec3af2fbd875e,0xbfed6a77e6a0364e,1
|
| 1278 |
+
np.float64,0xffef46e7d9be8dcf,0xbfed7d39476f7e27,1
|
| 1279 |
+
np.float64,0xffe2c2ce4525859c,0x3fe1757261316bc9,1
|
| 1280 |
+
np.float64,0xffe27c8b5864f916,0xbfefe017c0d43457,1
|
| 1281 |
+
np.float64,0xffe184d7442309ae,0x3fa1fb8c49dba596,1
|
| 1282 |
+
np.float64,0xffddf5f98d3bebf4,0x3fee4f8eaa5f847e,1
|
| 1283 |
+
np.float64,0xffee3ef354fc7de6,0xbfebfd60fa51b2ba,1
|
| 1284 |
+
np.float64,0xffdecb3e85bd967e,0x3fbfad2667a8b468,1
|
| 1285 |
+
np.float64,0xffe4ee900b29dd20,0xbfdc02dc626f91cd,1
|
| 1286 |
+
np.float64,0xffd3179f6da62f3e,0xbfe2cfe442511776,1
|
| 1287 |
+
np.float64,0xffe99ef7cef33def,0x3f50994542a7f303,1
|
| 1288 |
+
np.float64,0xffe2b66b1ae56cd6,0xbfefe3e066eb6329,1
|
| 1289 |
+
np.float64,0xff8f72aff03ee540,0x3fe9c46224cf5003,1
|
| 1290 |
+
np.float64,0xffd29beb85a537d8,0x3fefcb0b6166be71,1
|
| 1291 |
+
np.float64,0xffaef02d4c3de060,0xbfef5fb71028fc72,1
|
| 1292 |
+
np.float64,0xffd39a2a89273456,0x3fe6d4b183205dca,1
|
| 1293 |
+
np.float64,0xffef8a9392ff1526,0x3fedb99fbf402468,1
|
| 1294 |
+
np.float64,0xffb9b3f31e3367e8,0x3fee1005270fcf80,1
|
| 1295 |
+
np.float64,0xffed9d5c693b3ab8,0x3fd110f4b02365d5,1
|
| 1296 |
+
np.float64,0xffeaba45f9f5748b,0x3fe499e0a6f4afb2,1
|
| 1297 |
+
np.float64,0xffdba3f70d3747ee,0xbfca0c30493ae519,1
|
| 1298 |
+
np.float64,0xffa35b985426b730,0xbfdb625df56bcf45,1
|
| 1299 |
+
np.float64,0xffccbc9728397930,0x3fc53cbc59020704,1
|
| 1300 |
+
np.float64,0xffef73c942bee792,0xbfdc647a7a5e08be,1
|
| 1301 |
+
np.float64,0xffcb5acfb236b5a0,0x3feeb4ec038c39fc,1
|
| 1302 |
+
np.float64,0xffea116fe2b422df,0x3fefe03b6ae0b435,1
|
| 1303 |
+
np.float64,0xffe97de6e7b2fbcd,0xbfd2025698fab9eb,1
|
| 1304 |
+
np.float64,0xffdddba314bbb746,0x3fd31f0fdb8f93be,1
|
| 1305 |
+
np.float64,0xffd613a24a2c2744,0xbfebbb1efae884b3,1
|
| 1306 |
+
np.float64,0xffe3d938aa67b271,0xbfc2099cead3d3be,1
|
| 1307 |
+
np.float64,0xffdf08c2e33e1186,0xbfefd236839b900d,1
|
| 1308 |
+
np.float64,0xffea6ba8bd34d751,0x3fe8dfc032114719,1
|
| 1309 |
+
np.float64,0xffe3202083e64040,0x3fed513b81432a22,1
|
| 1310 |
+
np.float64,0xffb2397db62472f8,0xbfee7d7fe1c3f76c,1
|
| 1311 |
+
np.float64,0xffd9d0682ab3a0d0,0x3fe0bcf9e531ad79,1
|
| 1312 |
+
np.float64,0xffc293df202527c0,0xbfe58d0bdece5e64,1
|
| 1313 |
+
np.float64,0xffe1422c7da28458,0xbf81bd72595f2341,1
|
| 1314 |
+
np.float64,0xffd64e4ed4ac9c9e,0x3fa4334cc011c703,1
|
| 1315 |
+
np.float64,0xffe40a970ae8152e,0x3fead3d258b55b7d,1
|
| 1316 |
+
np.float64,0xffc8c2f2223185e4,0xbfef685f07c8b9fd,1
|
| 1317 |
+
np.float64,0xffe4b2f7216965ee,0x3fe3861d3d896a83,1
|
| 1318 |
+
np.float64,0xffdb531db3b6a63c,0x3fe18cb8332dd59d,1
|
| 1319 |
+
np.float64,0xffe8e727a3b1ce4e,0xbfe57b15abb677b9,1
|
| 1320 |
+
np.float64,0xffe530c1e12a6184,0xbfb973ea5535e48f,1
|
| 1321 |
+
np.float64,0xffe6f7849cedef08,0x3fd39a37ec5af4b6,1
|
| 1322 |
+
np.float64,0xffead62a78b5ac54,0x3fe69b3f6c7aa24b,1
|
| 1323 |
+
np.float64,0xffeefdd725fdfbad,0xbfc08a456111fdd5,1
|
| 1324 |
+
np.float64,0xffe682182fed0430,0x3fecc7c1292761d2,1
|
| 1325 |
+
np.float64,0xffee0ca8dcbc1951,0x3fef6cc361ef2c19,1
|
| 1326 |
+
np.float64,0xffec9b338f393666,0x3fefa9ab8e0471b5,1
|
| 1327 |
+
np.float64,0xffe13c5e29a278bc,0xbfef8da74ad83398,1
|
| 1328 |
+
np.float64,0xffd7bd48c62f7a92,0x3fe3468cd4ac9d34,1
|
| 1329 |
+
np.float64,0xffedd0ed14bba1d9,0xbfd563a83477077b,1
|
| 1330 |
+
np.float64,0xffe86b83f3f0d707,0x3fe9eb3c658e4b2d,1
|
| 1331 |
+
np.float64,0xffd6a4db4bad49b6,0xbfc7e11276166e17,1
|
| 1332 |
+
np.float64,0xffc29e8404253d08,0x3fd35971961c789f,1
|
| 1333 |
+
np.float64,0xffe27cf3d664f9e7,0xbfeca0f73c72f810,1
|
| 1334 |
+
np.float64,0xffc34152352682a4,0x3fef384e564c002c,1
|
| 1335 |
+
np.float64,0xffe395728ba72ae4,0x3f8fe18c2de86eba,1
|
| 1336 |
+
np.float64,0xffed86c4fbbb0d89,0x3fef709db881c672,1
|
| 1337 |
+
np.float64,0xffe8a98d37f1531a,0x3fd4879c8f73c3dc,1
|
| 1338 |
+
np.float64,0xffb8ce9fea319d40,0xbfb853c8fe46b08d,1
|
| 1339 |
+
np.float64,0xffe7f26db8efe4db,0xbfec1cfd3e5c2ac1,1
|
| 1340 |
+
np.float64,0xffd7935b77af26b6,0x3fb7368c89b2a460,1
|
| 1341 |
+
np.float64,0xffc5840ed02b081c,0x3fd92220b56631f3,1
|
| 1342 |
+
np.float64,0xffc36a873926d510,0x3fa84d61baf61811,1
|
| 1343 |
+
np.float64,0xffe06ea583e0dd4a,0x3feb647e348b9e39,1
|
| 1344 |
+
np.float64,0xffe6a33031ed4660,0xbfe096b851dc1a0a,1
|
| 1345 |
+
np.float64,0xffe001c938e00392,0x3fe4eece77623e7a,1
|
| 1346 |
+
np.float64,0xffc1e4f23b23c9e4,0xbfdb9bb1f83f6ac4,1
|
| 1347 |
+
np.float64,0xffecd3ecbab9a7d9,0x3fbafb1f800f177d,1
|
| 1348 |
+
np.float64,0xffc2d3016825a604,0xbfef650e8b0d6afb,1
|
| 1349 |
+
np.float64,0xffe222cb68e44596,0x3fde3690e44de5bd,1
|
| 1350 |
+
np.float64,0xffe5bb145e2b7628,0x3fedbb98e23c9dc1,1
|
| 1351 |
+
np.float64,0xffe9e5823b73cb04,0xbfee41661016c03c,1
|
| 1352 |
+
np.float64,0xffd234a00ba46940,0x3fda0312cda580c2,1
|
| 1353 |
+
np.float64,0xffe0913ed6e1227d,0xbfed508bb529bd23,1
|
| 1354 |
+
np.float64,0xffe8e3596171c6b2,0xbfdc33e1c1d0310e,1
|
| 1355 |
+
np.float64,0xffef9c6835ff38cf,0x3fea8ce6d27dfba3,1
|
| 1356 |
+
np.float64,0xffdd3bcf66ba779e,0x3fe50523d2b6470e,1
|
| 1357 |
+
np.float64,0xffe57e8cf06afd1a,0xbfee600933347247,1
|
| 1358 |
+
np.float64,0xffe0d8c65fa1b18c,0x3fe75091f93d5e4c,1
|
| 1359 |
+
np.float64,0xffea7c8c16b4f918,0x3fee681724795198,1
|
| 1360 |
+
np.float64,0xffe34f7a05269ef4,0xbfe3c3e179676f13,1
|
| 1361 |
+
np.float64,0xffd28894a6a5112a,0xbfe5d1027aee615d,1
|
| 1362 |
+
np.float64,0xffc73be6f22e77cc,0x3fe469bbc08b472a,1
|
| 1363 |
+
np.float64,0xffe7f71b066fee36,0x3fe7ed136c8fdfaa,1
|
| 1364 |
+
np.float64,0xffebc13e29f7827c,0x3fefcdc6e677d314,1
|
| 1365 |
+
np.float64,0xffd53e9c942a7d3a,0x3fea5a02c7341749,1
|
| 1366 |
+
np.float64,0xffd7191b23ae3236,0x3fea419b66023443,1
|
| 1367 |
+
np.float64,0xffe9480325b29006,0xbfefeaff5fa38cd5,1
|
| 1368 |
+
np.float64,0xffba46dc0e348db8,0xbfefa54f4de28eba,1
|
| 1369 |
+
np.float64,0xffdd4cc31eba9986,0x3fe60bb41fe1c4da,1
|
| 1370 |
+
np.float64,0xffe13a70dea274e1,0xbfaa9192f7bd6c9b,1
|
| 1371 |
+
np.float64,0xffde25127bbc4a24,0x3f7c75f45e29be7d,1
|
| 1372 |
+
np.float64,0xffe4076543a80eca,0x3fea5aad50d2f687,1
|
| 1373 |
+
np.float64,0xffe61512acec2a25,0xbfefffeb67401649,1
|
| 1374 |
+
np.float64,0xffef812ec1ff025d,0xbfe919c7c073c766,1
|
| 1375 |
+
np.float64,0xffd5552aeaaaaa56,0x3fc89d38ab047396,1
|
shared/package-files/d0/d0f57acab07fe4f9c116c3392d85946bac8e78608f409cea70005f16ea019b57/blob
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# Deprecated alias for xml.etree.ElementTree
|
| 2 |
+
|
| 3 |
+
from xml.etree.ElementTree import *
|
shared/package-files/d0/d0f7973193eb35d19e99d1d8bca3c7f3a8b8d0410508af34ad571aee8ec5ab05/blob
ADDED
|
Binary file (913 Bytes). View file
|
|
|
shared/package-files/d0/d0fa53f32abd96d97fb96c50fd0a05d30f83d667315dcaa20ae2f22c52b36f62/blob
ADDED
|
@@ -0,0 +1,70 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Function.h
|
| 4 |
+
|
| 5 |
+
#include <ATen/Context.h>
|
| 6 |
+
#include <ATen/DeviceGuard.h>
|
| 7 |
+
#include <ATen/TensorUtils.h>
|
| 8 |
+
#include <ATen/TracerMode.h>
|
| 9 |
+
#include <ATen/core/Generator.h>
|
| 10 |
+
#include <ATen/core/Reduction.h>
|
| 11 |
+
#include <ATen/core/Tensor.h>
|
| 12 |
+
#include <c10/core/Scalar.h>
|
| 13 |
+
#include <c10/core/Storage.h>
|
| 14 |
+
#include <c10/core/TensorOptions.h>
|
| 15 |
+
#include <c10/util/Deprecated.h>
|
| 16 |
+
#include <c10/util/Optional.h>
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include <ATen/ops/arange_ops.h>
|
| 21 |
+
|
| 22 |
+
namespace at {
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
// aten::arange(Scalar end, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
|
| 26 |
+
inline at::Tensor arange(const at::Scalar & end, at::TensorOptions options={}) {
|
| 27 |
+
return at::_ops::arange::call(end, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt());
|
| 28 |
+
}
|
| 29 |
+
// aten::arange(Scalar end, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
|
| 30 |
+
inline at::Tensor arange(const at::Scalar & end, c10::optional<at::ScalarType> dtype, c10::optional<at::Layout> layout, c10::optional<at::Device> device, c10::optional<bool> pin_memory) {
|
| 31 |
+
return at::_ops::arange::call(end, dtype, layout, device, pin_memory);
|
| 32 |
+
}
|
| 33 |
+
|
| 34 |
+
// aten::arange.start(Scalar start, Scalar end, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
|
| 35 |
+
inline at::Tensor arange(const at::Scalar & start, const at::Scalar & end, at::TensorOptions options={}) {
|
| 36 |
+
return at::_ops::arange_start::call(start, end, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt());
|
| 37 |
+
}
|
| 38 |
+
// aten::arange.start(Scalar start, Scalar end, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
|
| 39 |
+
inline at::Tensor arange(const at::Scalar & start, const at::Scalar & end, c10::optional<at::ScalarType> dtype, c10::optional<at::Layout> layout, c10::optional<at::Device> device, c10::optional<bool> pin_memory) {
|
| 40 |
+
return at::_ops::arange_start::call(start, end, dtype, layout, device, pin_memory);
|
| 41 |
+
}
|
| 42 |
+
|
| 43 |
+
// aten::arange.start_step(Scalar start, Scalar end, Scalar step=1, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
|
| 44 |
+
inline at::Tensor arange(const at::Scalar & start, const at::Scalar & end, const at::Scalar & step, at::TensorOptions options={}) {
|
| 45 |
+
return at::_ops::arange_start_step::call(start, end, step, c10::optTypeMetaToScalarType(options.dtype_opt()), options.layout_opt(), options.device_opt(), options.pinned_memory_opt());
|
| 46 |
+
}
|
| 47 |
+
// aten::arange.start_step(Scalar start, Scalar end, Scalar step=1, *, ScalarType? dtype=None, Layout? layout=None, Device? device=None, bool? pin_memory=None) -> Tensor
|
| 48 |
+
inline at::Tensor arange(const at::Scalar & start, const at::Scalar & end, const at::Scalar & step, c10::optional<at::ScalarType> dtype, c10::optional<at::Layout> layout, c10::optional<at::Device> device, c10::optional<bool> pin_memory) {
|
| 49 |
+
return at::_ops::arange_start_step::call(start, end, step, dtype, layout, device, pin_memory);
|
| 50 |
+
}
|
| 51 |
+
|
| 52 |
+
// aten::arange.out(Scalar end, *, Tensor(a!) out) -> Tensor(a!)
|
| 53 |
+
inline at::Tensor & arange_out(at::Tensor & out, const at::Scalar & end) {
|
| 54 |
+
return at::_ops::arange_out::call(end, out);
|
| 55 |
+
}
|
| 56 |
+
// aten::arange.out(Scalar end, *, Tensor(a!) out) -> Tensor(a!)
|
| 57 |
+
inline at::Tensor & arange_outf(const at::Scalar & end, at::Tensor & out) {
|
| 58 |
+
return at::_ops::arange_out::call(end, out);
|
| 59 |
+
}
|
| 60 |
+
|
| 61 |
+
// aten::arange.start_out(Scalar start, Scalar end, Scalar step=1, *, Tensor(a!) out) -> Tensor(a!)
|
| 62 |
+
inline at::Tensor & arange_out(at::Tensor & out, const at::Scalar & start, const at::Scalar & end, const at::Scalar & step) {
|
| 63 |
+
return at::_ops::arange_start_out::call(start, end, step, out);
|
| 64 |
+
}
|
| 65 |
+
// aten::arange.start_out(Scalar start, Scalar end, Scalar step=1, *, Tensor(a!) out) -> Tensor(a!)
|
| 66 |
+
inline at::Tensor & arange_outf(const at::Scalar & start, const at::Scalar & end, const at::Scalar & step, at::Tensor & out) {
|
| 67 |
+
return at::_ops::arange_start_out::call(start, end, step, out);
|
| 68 |
+
}
|
| 69 |
+
|
| 70 |
+
}
|
shared/package-files/d0/d0faa9d7997d5696bff92384144e0b9dfb2e4c38375817613f81a89c06ec6383/blob
ADDED
|
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# created by tools/loadICU.tcl -- do not edit
|
| 2 |
+
namespace eval ::tcl::clock {
|
| 3 |
+
::msgcat::mcset es_MX DATE_FORMAT "%e/%m/%Y"
|
| 4 |
+
::msgcat::mcset es_MX TIME_FORMAT_12 "%I:%M:%S %P"
|
| 5 |
+
::msgcat::mcset es_MX DATE_TIME_FORMAT "%e/%m/%Y %I:%M:%S %P %z"
|
| 6 |
+
}
|
shared/package-files/d0/d0fcf91bf804e5e905af4c010a43f3cd87f9d21b099be08934a5acceab609ddf/blob
ADDED
|
@@ -0,0 +1,272 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import importlib
|
| 2 |
+
import json
|
| 3 |
+
import os
|
| 4 |
+
import random
|
| 5 |
+
from abc import ABC, abstractmethod
|
| 6 |
+
from pathlib import Path
|
| 7 |
+
from typing import Dict, List, Optional
|
| 8 |
+
import hashlib
|
| 9 |
+
|
| 10 |
+
|
| 11 |
+
def default_cache_dir():
|
| 12 |
+
return os.path.join(Path.home(), ".triton", "cache")
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def default_override_dir():
|
| 16 |
+
return os.path.join(Path.home(), ".triton", "override")
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
def default_dump_dir():
|
| 20 |
+
return os.path.join(Path.home(), ".triton", "dump")
|
| 21 |
+
|
| 22 |
+
|
| 23 |
+
class CacheManager(ABC):
|
| 24 |
+
|
| 25 |
+
def __init__(self, key):
|
| 26 |
+
pass
|
| 27 |
+
|
| 28 |
+
@abstractmethod
|
| 29 |
+
def get_file(self, filename) -> Optional[str]:
|
| 30 |
+
pass
|
| 31 |
+
|
| 32 |
+
@abstractmethod
|
| 33 |
+
def put(self, data, filename, binary=True) -> str:
|
| 34 |
+
pass
|
| 35 |
+
|
| 36 |
+
@abstractmethod
|
| 37 |
+
def get_group(self, filename: str) -> Optional[Dict[str, str]]:
|
| 38 |
+
pass
|
| 39 |
+
|
| 40 |
+
@abstractmethod
|
| 41 |
+
def put_group(self, filename: str, group: Dict[str, str]):
|
| 42 |
+
pass
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
class FileCacheManager(CacheManager):
|
| 46 |
+
|
| 47 |
+
def __init__(self, key, override=False, dump=False):
|
| 48 |
+
self.key = key
|
| 49 |
+
self.lock_path = None
|
| 50 |
+
if dump:
|
| 51 |
+
self.cache_dir = default_dump_dir()
|
| 52 |
+
self.cache_dir = os.path.join(self.cache_dir, self.key)
|
| 53 |
+
self.lock_path = os.path.join(self.cache_dir, "lock")
|
| 54 |
+
os.makedirs(self.cache_dir, exist_ok=True)
|
| 55 |
+
elif override:
|
| 56 |
+
self.cache_dir = default_override_dir()
|
| 57 |
+
self.cache_dir = os.path.join(self.cache_dir, self.key)
|
| 58 |
+
else:
|
| 59 |
+
# create cache directory if it doesn't exist
|
| 60 |
+
self.cache_dir = os.getenv("TRITON_CACHE_DIR", "").strip() or default_cache_dir()
|
| 61 |
+
if self.cache_dir:
|
| 62 |
+
self.cache_dir = os.path.join(self.cache_dir, self.key)
|
| 63 |
+
self.lock_path = os.path.join(self.cache_dir, "lock")
|
| 64 |
+
os.makedirs(self.cache_dir, exist_ok=True)
|
| 65 |
+
else:
|
| 66 |
+
raise RuntimeError("Could not create or locate cache dir")
|
| 67 |
+
|
| 68 |
+
def _make_path(self, filename) -> str:
|
| 69 |
+
return os.path.join(self.cache_dir, filename)
|
| 70 |
+
|
| 71 |
+
def _has_file(self, filename) -> bool:
|
| 72 |
+
if not self.cache_dir:
|
| 73 |
+
raise RuntimeError("Could not create or locate cache dir")
|
| 74 |
+
return os.path.exists(self._make_path(filename))
|
| 75 |
+
|
| 76 |
+
def get_file(self, filename) -> Optional[str]:
|
| 77 |
+
if self._has_file(filename):
|
| 78 |
+
return self._make_path(filename)
|
| 79 |
+
else:
|
| 80 |
+
return None
|
| 81 |
+
|
| 82 |
+
def get_group(self, filename: str) -> Optional[Dict[str, str]]:
|
| 83 |
+
grp_filename = f"__grp__{filename}"
|
| 84 |
+
if not self._has_file(grp_filename):
|
| 85 |
+
return None
|
| 86 |
+
grp_filepath = self._make_path(grp_filename)
|
| 87 |
+
with open(grp_filepath) as f:
|
| 88 |
+
grp_data = json.load(f)
|
| 89 |
+
child_paths = grp_data.get("child_paths", None)
|
| 90 |
+
# Invalid group data.
|
| 91 |
+
if child_paths is None:
|
| 92 |
+
return None
|
| 93 |
+
result = {}
|
| 94 |
+
for c in child_paths:
|
| 95 |
+
p = self._make_path(c)
|
| 96 |
+
if os.path.exists(p):
|
| 97 |
+
result[c] = p
|
| 98 |
+
return result
|
| 99 |
+
|
| 100 |
+
# Note a group of pushed files as being part of a group
|
| 101 |
+
def put_group(self, filename: str, group: Dict[str, str]) -> str:
|
| 102 |
+
if not self.cache_dir:
|
| 103 |
+
raise RuntimeError("Could not create or locate cache dir")
|
| 104 |
+
grp_contents = json.dumps({"child_paths": sorted(list(group.keys()))})
|
| 105 |
+
grp_filename = f"__grp__{filename}"
|
| 106 |
+
return self.put(grp_contents, grp_filename, binary=False)
|
| 107 |
+
|
| 108 |
+
def put(self, data, filename, binary=True) -> str:
|
| 109 |
+
if not self.cache_dir:
|
| 110 |
+
raise RuntimeError("Could not create or locate cache dir")
|
| 111 |
+
binary = isinstance(data, bytes)
|
| 112 |
+
if not binary:
|
| 113 |
+
data = str(data)
|
| 114 |
+
assert self.lock_path is not None
|
| 115 |
+
filepath = self._make_path(filename)
|
| 116 |
+
# Random ID to avoid any collisions
|
| 117 |
+
rnd_id = random.randint(0, 1000000)
|
| 118 |
+
# we use the PID incase a bunch of these around so we can see what PID made it
|
| 119 |
+
pid = os.getpid()
|
| 120 |
+
# use tempfile to be robust against program interruptions
|
| 121 |
+
temp_path = f"{filepath}.tmp.pid_{pid}_{rnd_id}"
|
| 122 |
+
mode = "wb" if binary else "w"
|
| 123 |
+
with open(temp_path, mode) as f:
|
| 124 |
+
f.write(data)
|
| 125 |
+
# Replace is guaranteed to be atomic on POSIX systems if it succeeds
|
| 126 |
+
# so filepath cannot see a partial write
|
| 127 |
+
os.replace(temp_path, filepath)
|
| 128 |
+
return filepath
|
| 129 |
+
|
| 130 |
+
|
| 131 |
+
class RemoteCacheBackend:
|
| 132 |
+
"""
|
| 133 |
+
A backend implementation for accessing a remote/distributed cache.
|
| 134 |
+
"""
|
| 135 |
+
|
| 136 |
+
def __init__(self, key: str):
|
| 137 |
+
pass
|
| 138 |
+
|
| 139 |
+
@abstractmethod
|
| 140 |
+
def get(self, filenames: List[str]) -> Dict[str, bytes]:
|
| 141 |
+
pass
|
| 142 |
+
|
| 143 |
+
@abstractmethod
|
| 144 |
+
def put(self, filename: str, data: bytes):
|
| 145 |
+
pass
|
| 146 |
+
|
| 147 |
+
|
| 148 |
+
class RedisRemoteCacheBackend(RemoteCacheBackend):
|
| 149 |
+
|
| 150 |
+
def __init__(self, key):
|
| 151 |
+
import redis
|
| 152 |
+
self._key = key
|
| 153 |
+
self._key_fmt = os.environ.get("TRITON_REDIS_KEY_FORMAT", "triton:{key}:{filename}")
|
| 154 |
+
self._redis = redis.Redis(
|
| 155 |
+
host=os.environ.get("TRITON_REDIS_HOST", "localhost"),
|
| 156 |
+
port=int(os.environ.get("TRITON_REDIS_PORT", 6379)),
|
| 157 |
+
)
|
| 158 |
+
|
| 159 |
+
def _get_key(self, filename: str) -> str:
|
| 160 |
+
return self._key_fmt.format(key=self._key, filename=filename)
|
| 161 |
+
|
| 162 |
+
def get(self, filenames: List[str]) -> Dict[str, str]:
|
| 163 |
+
results = self._redis.mget([self._get_key(f) for f in filenames])
|
| 164 |
+
return {filename: result for filename, result in zip(filenames, results) if result is not None}
|
| 165 |
+
|
| 166 |
+
def put(self, filename: str, data: bytes) -> Dict[str, bytes]:
|
| 167 |
+
self._redis.set(self._get_key(filename), data)
|
| 168 |
+
|
| 169 |
+
|
| 170 |
+
class RemoteCacheManager(CacheManager):
|
| 171 |
+
|
| 172 |
+
def __init__(self, key, override=False, dump=False):
|
| 173 |
+
# Setup backend pointed too by `TRITON_REMOTE_CACHE_BACKEND`.
|
| 174 |
+
remote_cache_manager = os.environ["TRITON_REMOTE_CACHE_BACKEND"]
|
| 175 |
+
module_path, clz_nme = remote_cache_manager.split(":")
|
| 176 |
+
module = importlib.import_module(module_path)
|
| 177 |
+
remote_cache_cls = getattr(module, clz_nme)
|
| 178 |
+
self._backend = remote_cache_cls(key)
|
| 179 |
+
|
| 180 |
+
self._override = override
|
| 181 |
+
self._dump = dump
|
| 182 |
+
|
| 183 |
+
# Use a `FileCacheManager` to materialize remote cache paths locally.
|
| 184 |
+
self._file_cache_manager = FileCacheManager(key, override=override, dump=dump)
|
| 185 |
+
|
| 186 |
+
def _materialize(self, filename: str, data: bytes):
|
| 187 |
+
# We use a backing `FileCacheManager` to provide the materialized data.
|
| 188 |
+
return self._file_cache_manager.put(data, filename, binary=True)
|
| 189 |
+
|
| 190 |
+
def get_file(self, filename: str) -> Optional[str]:
|
| 191 |
+
# We don't handle the dump/override cases.
|
| 192 |
+
if self._dump or self._override:
|
| 193 |
+
return self._file_cache_manager.get_file(filename)
|
| 194 |
+
|
| 195 |
+
# We always check the remote cache backend -- even if our internal file-
|
| 196 |
+
# based cache has the item -- to make sure LRU accounting works as
|
| 197 |
+
# expected.
|
| 198 |
+
results = self._backend.get([filename])
|
| 199 |
+
if len(results) == 0:
|
| 200 |
+
return None
|
| 201 |
+
(_, data), = results.items()
|
| 202 |
+
return self._materialize(filename, data)
|
| 203 |
+
|
| 204 |
+
def put(self, data, filename: str, binary=True) -> str:
|
| 205 |
+
# We don't handle the dump/override cases.
|
| 206 |
+
if self._dump or self._override:
|
| 207 |
+
return self._file_cache_manager.put(data, filename, binary=binary)
|
| 208 |
+
|
| 209 |
+
if not isinstance(data, bytes):
|
| 210 |
+
data = str(data).encode("utf-8")
|
| 211 |
+
self._backend.put(filename, data)
|
| 212 |
+
return self._materialize(filename, data)
|
| 213 |
+
|
| 214 |
+
def get_group(self, filename: str) -> Optional[Dict[str, str]]:
|
| 215 |
+
# We don't handle the dump/override cases.
|
| 216 |
+
if self._dump or self._override:
|
| 217 |
+
return self._file_cache_manager.get_group(filename)
|
| 218 |
+
|
| 219 |
+
grp_filename = f"__grp__{filename}"
|
| 220 |
+
grp_filepath = self.get_file(grp_filename)
|
| 221 |
+
if grp_filepath is None:
|
| 222 |
+
return None
|
| 223 |
+
with open(grp_filepath) as f:
|
| 224 |
+
grp_data = json.load(f)
|
| 225 |
+
child_paths = grp_data.get("child_paths", None)
|
| 226 |
+
|
| 227 |
+
result = None
|
| 228 |
+
|
| 229 |
+
# Found group data.
|
| 230 |
+
if child_paths is not None:
|
| 231 |
+
result = {}
|
| 232 |
+
for child_path, data in self._backend.get(child_paths).items():
|
| 233 |
+
result[child_path] = self._materialize(child_path, data)
|
| 234 |
+
|
| 235 |
+
return result
|
| 236 |
+
|
| 237 |
+
def put_group(self, filename: str, group: Dict[str, str]):
|
| 238 |
+
# We don't handle the dump/override cases.
|
| 239 |
+
if self._dump or self._override:
|
| 240 |
+
return self._file_cache_manager.put_group(filename, group)
|
| 241 |
+
|
| 242 |
+
grp_contents = json.dumps({"child_paths": sorted(list(group.keys()))})
|
| 243 |
+
grp_filename = f"__grp__{filename}"
|
| 244 |
+
return self.put(grp_contents, grp_filename)
|
| 245 |
+
|
| 246 |
+
|
| 247 |
+
__cache_cls = FileCacheManager
|
| 248 |
+
__cache_cls_nme = "DEFAULT"
|
| 249 |
+
|
| 250 |
+
|
| 251 |
+
def get_cache_manager(key) -> CacheManager:
|
| 252 |
+
import os
|
| 253 |
+
|
| 254 |
+
user_cache_manager = os.environ.get("TRITON_CACHE_MANAGER", None)
|
| 255 |
+
global __cache_cls
|
| 256 |
+
global __cache_cls_nme
|
| 257 |
+
|
| 258 |
+
if user_cache_manager is not None and user_cache_manager != __cache_cls_nme:
|
| 259 |
+
module_path, clz_nme = user_cache_manager.split(":")
|
| 260 |
+
module = importlib.import_module(module_path)
|
| 261 |
+
__cache_cls = getattr(module, clz_nme)
|
| 262 |
+
__cache_cls_nme = user_cache_manager
|
| 263 |
+
|
| 264 |
+
return __cache_cls(key)
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
def get_override_manager(key) -> CacheManager:
|
| 268 |
+
return __cache_cls(key, override=True)
|
| 269 |
+
|
| 270 |
+
|
| 271 |
+
def get_dump_manager(key) -> CacheManager:
|
| 272 |
+
return __cache_cls(key, dump=True)
|
shared/package-files/d0/d0fe17fc3e92faddf23dea67cdd0c9bdfa3143ae67a93488733b4ec1fe38173b/blob
ADDED
|
Binary file (3.23 kB). View file
|
|
|
shared/package-files/d0/d0ffb4973b6651de10e60155e16d7f39a3ead8da0aa3b1a5be6fb181122a8f7d/blob
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d0ffb4973b6651de10e60155e16d7f39a3ead8da0aa3b1a5be6fb181122a8f7d
|
| 3 |
+
size 6846016
|
shared/package-files/d0/d0ffb73a5cb4d362844098a046ae382787c0e6482b7ca105ba896b3311730713/blob
ADDED
|
@@ -0,0 +1,39 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Operator.h
|
| 4 |
+
|
| 5 |
+
#include <tuple>
|
| 6 |
+
#include <vector>
|
| 7 |
+
|
| 8 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 9 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 10 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 11 |
+
#include <ATen/core/ATen_fwd.h>
|
| 12 |
+
|
| 13 |
+
namespace at {
|
| 14 |
+
namespace _ops {
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
struct TORCH_API _convert_indices_from_coo_to_csr {
|
| 18 |
+
using schema = at::Tensor (const at::Tensor &, int64_t, bool);
|
| 19 |
+
using ptr_schema = schema*;
|
| 20 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 21 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_convert_indices_from_coo_to_csr")
|
| 22 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "")
|
| 23 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_convert_indices_from_coo_to_csr(Tensor self, int size, *, bool out_int32=False) -> Tensor")
|
| 24 |
+
static at::Tensor call(const at::Tensor & self, int64_t size, bool out_int32);
|
| 25 |
+
static at::Tensor redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t size, bool out_int32);
|
| 26 |
+
};
|
| 27 |
+
|
| 28 |
+
struct TORCH_API _convert_indices_from_coo_to_csr_out {
|
| 29 |
+
using schema = at::Tensor & (const at::Tensor &, int64_t, bool, at::Tensor &);
|
| 30 |
+
using ptr_schema = schema*;
|
| 31 |
+
// See Note [static constexpr char* members for windows NVCC]
|
| 32 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(name, "aten::_convert_indices_from_coo_to_csr")
|
| 33 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(overload_name, "out")
|
| 34 |
+
STATIC_CONSTEXPR_STR_INL_EXCEPT_WIN_CUDA(schema_str, "_convert_indices_from_coo_to_csr.out(Tensor self, int size, *, bool out_int32=False, Tensor(a!) out) -> Tensor(a!)")
|
| 35 |
+
static at::Tensor & call(const at::Tensor & self, int64_t size, bool out_int32, at::Tensor & out);
|
| 36 |
+
static at::Tensor & redispatch(c10::DispatchKeySet dispatchKeySet, const at::Tensor & self, int64_t size, bool out_int32, at::Tensor & out);
|
| 37 |
+
};
|
| 38 |
+
|
| 39 |
+
}} // namespace at::_ops
|
shared/package-files/d1/d105409050bee7120c75bbf7123b7ef7625852dd07b6228b91b33c913671a0a9/blob
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
shared/package-files/d1/d1077656f59bb84a73d5c477a4adafdd8761d037a58e4b5b9fed8f8dbb2275f9/blob
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:d1077656f59bb84a73d5c477a4adafdd8761d037a58e4b5b9fed8f8dbb2275f9
|
| 3 |
+
size 1170754
|
shared/package-files/d1/d10ac70fd4d82a5499b8ef1dae75376d4149ad2bbcbf94a772ab6445258b8c63/blob
ADDED
|
@@ -0,0 +1,108 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
This module implements a method to find
|
| 3 |
+
Euler-Lagrange Equations for given Lagrangian.
|
| 4 |
+
"""
|
| 5 |
+
from itertools import combinations_with_replacement
|
| 6 |
+
from sympy.core.function import (Derivative, Function, diff)
|
| 7 |
+
from sympy.core.relational import Eq
|
| 8 |
+
from sympy.core.singleton import S
|
| 9 |
+
from sympy.core.symbol import Symbol
|
| 10 |
+
from sympy.core.sympify import sympify
|
| 11 |
+
from sympy.utilities.iterables import iterable
|
| 12 |
+
|
| 13 |
+
|
| 14 |
+
def euler_equations(L, funcs=(), vars=()):
|
| 15 |
+
r"""
|
| 16 |
+
Find the Euler-Lagrange equations [1]_ for a given Lagrangian.
|
| 17 |
+
|
| 18 |
+
Parameters
|
| 19 |
+
==========
|
| 20 |
+
|
| 21 |
+
L : Expr
|
| 22 |
+
The Lagrangian that should be a function of the functions listed
|
| 23 |
+
in the second argument and their derivatives.
|
| 24 |
+
|
| 25 |
+
For example, in the case of two functions $f(x,y)$, $g(x,y)$ and
|
| 26 |
+
two independent variables $x$, $y$ the Lagrangian has the form:
|
| 27 |
+
|
| 28 |
+
.. math:: L\left(f(x,y),g(x,y),\frac{\partial f(x,y)}{\partial x},
|
| 29 |
+
\frac{\partial f(x,y)}{\partial y},
|
| 30 |
+
\frac{\partial g(x,y)}{\partial x},
|
| 31 |
+
\frac{\partial g(x,y)}{\partial y},x,y\right)
|
| 32 |
+
|
| 33 |
+
In many cases it is not necessary to provide anything, except the
|
| 34 |
+
Lagrangian, it will be auto-detected (and an error raised if this
|
| 35 |
+
cannot be done).
|
| 36 |
+
|
| 37 |
+
funcs : Function or an iterable of Functions
|
| 38 |
+
The functions that the Lagrangian depends on. The Euler equations
|
| 39 |
+
are differential equations for each of these functions.
|
| 40 |
+
|
| 41 |
+
vars : Symbol or an iterable of Symbols
|
| 42 |
+
The Symbols that are the independent variables of the functions.
|
| 43 |
+
|
| 44 |
+
Returns
|
| 45 |
+
=======
|
| 46 |
+
|
| 47 |
+
eqns : list of Eq
|
| 48 |
+
The list of differential equations, one for each function.
|
| 49 |
+
|
| 50 |
+
Examples
|
| 51 |
+
========
|
| 52 |
+
|
| 53 |
+
>>> from sympy import euler_equations, Symbol, Function
|
| 54 |
+
>>> x = Function('x')
|
| 55 |
+
>>> t = Symbol('t')
|
| 56 |
+
>>> L = (x(t).diff(t))**2/2 - x(t)**2/2
|
| 57 |
+
>>> euler_equations(L, x(t), t)
|
| 58 |
+
[Eq(-x(t) - Derivative(x(t), (t, 2)), 0)]
|
| 59 |
+
>>> u = Function('u')
|
| 60 |
+
>>> x = Symbol('x')
|
| 61 |
+
>>> L = (u(t, x).diff(t))**2/2 - (u(t, x).diff(x))**2/2
|
| 62 |
+
>>> euler_equations(L, u(t, x), [t, x])
|
| 63 |
+
[Eq(-Derivative(u(t, x), (t, 2)) + Derivative(u(t, x), (x, 2)), 0)]
|
| 64 |
+
|
| 65 |
+
References
|
| 66 |
+
==========
|
| 67 |
+
|
| 68 |
+
.. [1] https://en.wikipedia.org/wiki/Euler%E2%80%93Lagrange_equation
|
| 69 |
+
|
| 70 |
+
"""
|
| 71 |
+
|
| 72 |
+
funcs = tuple(funcs) if iterable(funcs) else (funcs,)
|
| 73 |
+
|
| 74 |
+
if not funcs:
|
| 75 |
+
funcs = tuple(L.atoms(Function))
|
| 76 |
+
else:
|
| 77 |
+
for f in funcs:
|
| 78 |
+
if not isinstance(f, Function):
|
| 79 |
+
raise TypeError('Function expected, got: %s' % f)
|
| 80 |
+
|
| 81 |
+
vars = tuple(vars) if iterable(vars) else (vars,)
|
| 82 |
+
|
| 83 |
+
if not vars:
|
| 84 |
+
vars = funcs[0].args
|
| 85 |
+
else:
|
| 86 |
+
vars = tuple(sympify(var) for var in vars)
|
| 87 |
+
|
| 88 |
+
if not all(isinstance(v, Symbol) for v in vars):
|
| 89 |
+
raise TypeError('Variables are not symbols, got %s' % vars)
|
| 90 |
+
|
| 91 |
+
for f in funcs:
|
| 92 |
+
if not vars == f.args:
|
| 93 |
+
raise ValueError("Variables %s do not match args: %s" % (vars, f))
|
| 94 |
+
|
| 95 |
+
order = max([len(d.variables) for d in L.atoms(Derivative)
|
| 96 |
+
if d.expr in funcs] + [0])
|
| 97 |
+
|
| 98 |
+
eqns = []
|
| 99 |
+
for f in funcs:
|
| 100 |
+
eq = diff(L, f)
|
| 101 |
+
for i in range(1, order + 1):
|
| 102 |
+
for p in combinations_with_replacement(vars, i):
|
| 103 |
+
eq = eq + S.NegativeOne**i*diff(L, diff(f, *p), *p)
|
| 104 |
+
new_eq = Eq(eq, 0)
|
| 105 |
+
if isinstance(new_eq, Eq):
|
| 106 |
+
eqns.append(new_eq)
|
| 107 |
+
|
| 108 |
+
return eqns
|
shared/package-files/d1/d10d4526a84c2480a0b962fb1dbad12b0c02caa7d95132cded6c4e79e29adbed/blob
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
shared/package-files/d1/d111625ea25c35f71d1fd8dc0dc06246e9cf756707667e00d1b95675247e32a1/blob
ADDED
|
@@ -0,0 +1,380 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Licensed to the Apache Software Foundation (ASF) under one
|
| 2 |
+
// or more contributor license agreements. See the NOTICE file
|
| 3 |
+
// distributed with this work for additional information
|
| 4 |
+
// regarding copyright ownership. The ASF licenses this file
|
| 5 |
+
// to you under the Apache License, Version 2.0 (the
|
| 6 |
+
// "License"); you may not use this file except in compliance
|
| 7 |
+
// with the License. You may obtain a copy of the License at
|
| 8 |
+
//
|
| 9 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
//
|
| 11 |
+
// Unless required by applicable law or agreed to in writing,
|
| 12 |
+
// software distributed under the License is distributed on an
|
| 13 |
+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 14 |
+
// KIND, either express or implied. See the License for the
|
| 15 |
+
// specific language governing permissions and limitations
|
| 16 |
+
// under the License.
|
| 17 |
+
|
| 18 |
+
#pragma once
|
| 19 |
+
|
| 20 |
+
#include <cstdint>
|
| 21 |
+
#include <memory>
|
| 22 |
+
#include <string>
|
| 23 |
+
#include <vector>
|
| 24 |
+
|
| 25 |
+
#include "arrow/chunked_array.h" // IWYU pragma: keep
|
| 26 |
+
#include "arrow/compare.h"
|
| 27 |
+
#include "arrow/record_batch.h"
|
| 28 |
+
#include "arrow/status.h"
|
| 29 |
+
#include "arrow/type.h"
|
| 30 |
+
#include "arrow/type_fwd.h"
|
| 31 |
+
#include "arrow/util/macros.h"
|
| 32 |
+
#include "arrow/util/visibility.h"
|
| 33 |
+
|
| 34 |
+
namespace arrow {
|
| 35 |
+
|
| 36 |
+
class Array;
|
| 37 |
+
class ChunkedArray;
|
| 38 |
+
class KeyValueMetadata;
|
| 39 |
+
class MemoryPool;
|
| 40 |
+
|
| 41 |
+
/// \class Table
|
| 42 |
+
/// \brief Logical table as sequence of chunked arrays
|
| 43 |
+
class ARROW_EXPORT Table {
|
| 44 |
+
public:
|
| 45 |
+
virtual ~Table() = default;
|
| 46 |
+
|
| 47 |
+
/// \brief Construct a Table from schema and columns
|
| 48 |
+
///
|
| 49 |
+
/// If columns is zero-length, the table's number of rows is zero
|
| 50 |
+
///
|
| 51 |
+
/// \param[in] schema The table schema (column types)
|
| 52 |
+
/// \param[in] columns The table's columns as chunked arrays
|
| 53 |
+
/// \param[in] num_rows number of rows in table, -1 (default) to infer from columns
|
| 54 |
+
static std::shared_ptr<Table> Make(std::shared_ptr<Schema> schema,
|
| 55 |
+
std::vector<std::shared_ptr<ChunkedArray>> columns,
|
| 56 |
+
int64_t num_rows = -1);
|
| 57 |
+
|
| 58 |
+
/// \brief Construct a Table from schema and arrays
|
| 59 |
+
///
|
| 60 |
+
/// \param[in] schema The table schema (column types)
|
| 61 |
+
/// \param[in] arrays The table's columns as arrays
|
| 62 |
+
/// \param[in] num_rows number of rows in table, -1 (default) to infer from columns
|
| 63 |
+
static std::shared_ptr<Table> Make(std::shared_ptr<Schema> schema,
|
| 64 |
+
const std::vector<std::shared_ptr<Array>>& arrays,
|
| 65 |
+
int64_t num_rows = -1);
|
| 66 |
+
|
| 67 |
+
/// \brief Create an empty Table of a given schema
|
| 68 |
+
///
|
| 69 |
+
/// The output Table will be created with a single empty chunk per column.
|
| 70 |
+
///
|
| 71 |
+
/// \param[in] schema the schema of the empty Table
|
| 72 |
+
/// \param[in] pool the memory pool to allocate memory from
|
| 73 |
+
/// \return the resulting Table
|
| 74 |
+
static Result<std::shared_ptr<Table>> MakeEmpty(
|
| 75 |
+
std::shared_ptr<Schema> schema, MemoryPool* pool = default_memory_pool());
|
| 76 |
+
|
| 77 |
+
/// \brief Construct a Table from a RecordBatchReader.
|
| 78 |
+
///
|
| 79 |
+
/// \param[in] reader the arrow::RecordBatchReader that produces batches
|
| 80 |
+
static Result<std::shared_ptr<Table>> FromRecordBatchReader(RecordBatchReader* reader);
|
| 81 |
+
|
| 82 |
+
/// \brief Construct a Table from RecordBatches, using schema supplied by the first
|
| 83 |
+
/// RecordBatch.
|
| 84 |
+
///
|
| 85 |
+
/// \param[in] batches a std::vector of record batches
|
| 86 |
+
static Result<std::shared_ptr<Table>> FromRecordBatches(
|
| 87 |
+
const std::vector<std::shared_ptr<RecordBatch>>& batches);
|
| 88 |
+
|
| 89 |
+
/// \brief Construct a Table from RecordBatches, using supplied schema. There may be
|
| 90 |
+
/// zero record batches
|
| 91 |
+
///
|
| 92 |
+
/// \param[in] schema the arrow::Schema for each batch
|
| 93 |
+
/// \param[in] batches a std::vector of record batches
|
| 94 |
+
static Result<std::shared_ptr<Table>> FromRecordBatches(
|
| 95 |
+
std::shared_ptr<Schema> schema,
|
| 96 |
+
const std::vector<std::shared_ptr<RecordBatch>>& batches);
|
| 97 |
+
|
| 98 |
+
/// \brief Construct a Table from a chunked StructArray. One column will be produced
|
| 99 |
+
/// for each field of the StructArray.
|
| 100 |
+
///
|
| 101 |
+
/// \param[in] array a chunked StructArray
|
| 102 |
+
static Result<std::shared_ptr<Table>> FromChunkedStructArray(
|
| 103 |
+
const std::shared_ptr<ChunkedArray>& array);
|
| 104 |
+
|
| 105 |
+
/// \brief Return the table schema
|
| 106 |
+
const std::shared_ptr<Schema>& schema() const { return schema_; }
|
| 107 |
+
|
| 108 |
+
/// \brief Return a column by index
|
| 109 |
+
virtual std::shared_ptr<ChunkedArray> column(int i) const = 0;
|
| 110 |
+
|
| 111 |
+
/// \brief Return vector of all columns for table
|
| 112 |
+
virtual const std::vector<std::shared_ptr<ChunkedArray>>& columns() const = 0;
|
| 113 |
+
|
| 114 |
+
/// Return a column's field by index
|
| 115 |
+
std::shared_ptr<Field> field(int i) const { return schema_->field(i); }
|
| 116 |
+
|
| 117 |
+
/// \brief Return vector of all fields for table
|
| 118 |
+
std::vector<std::shared_ptr<Field>> fields() const;
|
| 119 |
+
|
| 120 |
+
/// \brief Construct a zero-copy slice of the table with the
|
| 121 |
+
/// indicated offset and length
|
| 122 |
+
///
|
| 123 |
+
/// \param[in] offset the index of the first row in the constructed
|
| 124 |
+
/// slice
|
| 125 |
+
/// \param[in] length the number of rows of the slice. If there are not enough
|
| 126 |
+
/// rows in the table, the length will be adjusted accordingly
|
| 127 |
+
///
|
| 128 |
+
/// \return a new object wrapped in std::shared_ptr<Table>
|
| 129 |
+
virtual std::shared_ptr<Table> Slice(int64_t offset, int64_t length) const = 0;
|
| 130 |
+
|
| 131 |
+
/// \brief Slice from first row at offset until end of the table
|
| 132 |
+
std::shared_ptr<Table> Slice(int64_t offset) const { return Slice(offset, num_rows_); }
|
| 133 |
+
|
| 134 |
+
/// \brief Return a column by name
|
| 135 |
+
/// \param[in] name field name
|
| 136 |
+
/// \return an Array or null if no field was found
|
| 137 |
+
std::shared_ptr<ChunkedArray> GetColumnByName(const std::string& name) const {
|
| 138 |
+
auto i = schema_->GetFieldIndex(name);
|
| 139 |
+
return i == -1 ? NULLPTR : column(i);
|
| 140 |
+
}
|
| 141 |
+
|
| 142 |
+
/// \brief Remove column from the table, producing a new Table
|
| 143 |
+
virtual Result<std::shared_ptr<Table>> RemoveColumn(int i) const = 0;
|
| 144 |
+
|
| 145 |
+
/// \brief Add column to the table, producing a new Table
|
| 146 |
+
virtual Result<std::shared_ptr<Table>> AddColumn(
|
| 147 |
+
int i, std::shared_ptr<Field> field_arg,
|
| 148 |
+
std::shared_ptr<ChunkedArray> column) const = 0;
|
| 149 |
+
|
| 150 |
+
/// \brief Replace a column in the table, producing a new Table
|
| 151 |
+
virtual Result<std::shared_ptr<Table>> SetColumn(
|
| 152 |
+
int i, std::shared_ptr<Field> field_arg,
|
| 153 |
+
std::shared_ptr<ChunkedArray> column) const = 0;
|
| 154 |
+
|
| 155 |
+
/// \brief Return names of all columns
|
| 156 |
+
std::vector<std::string> ColumnNames() const;
|
| 157 |
+
|
| 158 |
+
/// \brief Rename columns with provided names
|
| 159 |
+
Result<std::shared_ptr<Table>> RenameColumns(
|
| 160 |
+
const std::vector<std::string>& names) const;
|
| 161 |
+
|
| 162 |
+
/// \brief Return new table with specified columns
|
| 163 |
+
Result<std::shared_ptr<Table>> SelectColumns(const std::vector<int>& indices) const;
|
| 164 |
+
|
| 165 |
+
/// \brief Replace schema key-value metadata with new metadata
|
| 166 |
+
/// \since 0.5.0
|
| 167 |
+
///
|
| 168 |
+
/// \param[in] metadata new KeyValueMetadata
|
| 169 |
+
/// \return new Table
|
| 170 |
+
virtual std::shared_ptr<Table> ReplaceSchemaMetadata(
|
| 171 |
+
const std::shared_ptr<const KeyValueMetadata>& metadata) const = 0;
|
| 172 |
+
|
| 173 |
+
/// \brief Flatten the table, producing a new Table. Any column with a
|
| 174 |
+
/// struct type will be flattened into multiple columns
|
| 175 |
+
///
|
| 176 |
+
/// \param[in] pool The pool for buffer allocations, if any
|
| 177 |
+
virtual Result<std::shared_ptr<Table>> Flatten(
|
| 178 |
+
MemoryPool* pool = default_memory_pool()) const = 0;
|
| 179 |
+
|
| 180 |
+
/// \return PrettyPrint representation suitable for debugging
|
| 181 |
+
std::string ToString() const;
|
| 182 |
+
|
| 183 |
+
/// \brief Perform cheap validation checks to determine obvious inconsistencies
|
| 184 |
+
/// within the table's schema and internal data.
|
| 185 |
+
///
|
| 186 |
+
/// This is O(k*m) where k is the total number of field descendents,
|
| 187 |
+
/// and m is the number of chunks.
|
| 188 |
+
///
|
| 189 |
+
/// \return Status
|
| 190 |
+
virtual Status Validate() const = 0;
|
| 191 |
+
|
| 192 |
+
/// \brief Perform extensive validation checks to determine inconsistencies
|
| 193 |
+
/// within the table's schema and internal data.
|
| 194 |
+
///
|
| 195 |
+
/// This is O(k*n) where k is the total number of field descendents,
|
| 196 |
+
/// and n is the number of rows.
|
| 197 |
+
///
|
| 198 |
+
/// \return Status
|
| 199 |
+
virtual Status ValidateFull() const = 0;
|
| 200 |
+
|
| 201 |
+
/// \brief Return the number of columns in the table
|
| 202 |
+
int num_columns() const { return schema_->num_fields(); }
|
| 203 |
+
|
| 204 |
+
/// \brief Return the number of rows (equal to each column's logical length)
|
| 205 |
+
int64_t num_rows() const { return num_rows_; }
|
| 206 |
+
|
| 207 |
+
/// \brief Determine if two tables are equal
|
| 208 |
+
///
|
| 209 |
+
/// \param[in] other the table to compare with
|
| 210 |
+
/// \param[in] opts the options for equality comparisons
|
| 211 |
+
/// \return true if two tables are equal
|
| 212 |
+
bool Equals(const Table& other, const EqualOptions& opts) const;
|
| 213 |
+
|
| 214 |
+
/// \brief Determine if two tables are equal
|
| 215 |
+
///
|
| 216 |
+
/// \param[in] other the table to compare with
|
| 217 |
+
/// \param[in] check_metadata if true, the schema metadata will be compared,
|
| 218 |
+
/// regardless of the value set in \ref EqualOptions::use_metadata
|
| 219 |
+
/// \param[in] opts the options for equality comparisons
|
| 220 |
+
/// \return true if two tables are equal
|
| 221 |
+
bool Equals(const Table& other, bool check_metadata = false,
|
| 222 |
+
const EqualOptions& opts = EqualOptions::Defaults()) const {
|
| 223 |
+
return Equals(other, opts.use_metadata(check_metadata));
|
| 224 |
+
}
|
| 225 |
+
|
| 226 |
+
/// \brief Make a new table by combining the chunks this table has.
|
| 227 |
+
///
|
| 228 |
+
/// All the underlying chunks in the ChunkedArray of each column are
|
| 229 |
+
/// concatenated into zero or one chunk.
|
| 230 |
+
///
|
| 231 |
+
/// To avoid buffer overflow, binary columns may be combined into
|
| 232 |
+
/// multiple chunks. Chunks will have the maximum possible length.
|
| 233 |
+
///
|
| 234 |
+
/// \param[in] pool The pool for buffer allocations
|
| 235 |
+
Result<std::shared_ptr<Table>> CombineChunks(
|
| 236 |
+
MemoryPool* pool = default_memory_pool()) const;
|
| 237 |
+
|
| 238 |
+
/// \brief Make a new record batch by combining the chunks this table has.
|
| 239 |
+
///
|
| 240 |
+
/// All the underlying chunks in the ChunkedArray of each column are
|
| 241 |
+
/// concatenated into a single chunk.
|
| 242 |
+
///
|
| 243 |
+
/// \param[in] pool The pool for buffer allocations
|
| 244 |
+
Result<std::shared_ptr<RecordBatch>> CombineChunksToBatch(
|
| 245 |
+
MemoryPool* pool = default_memory_pool()) const;
|
| 246 |
+
|
| 247 |
+
protected:
|
| 248 |
+
Table();
|
| 249 |
+
|
| 250 |
+
std::shared_ptr<Schema> schema_;
|
| 251 |
+
int64_t num_rows_;
|
| 252 |
+
|
| 253 |
+
private:
|
| 254 |
+
ARROW_DISALLOW_COPY_AND_ASSIGN(Table);
|
| 255 |
+
};
|
| 256 |
+
|
| 257 |
+
/// \brief Compute a stream of record batches from a (possibly chunked) Table
|
| 258 |
+
///
|
| 259 |
+
/// The conversion is zero-copy: each record batch is a view over a slice
|
| 260 |
+
/// of the table's columns.
|
| 261 |
+
///
|
| 262 |
+
/// The table is expected to be valid prior to using it with the batch reader.
|
| 263 |
+
class ARROW_EXPORT TableBatchReader : public RecordBatchReader {
|
| 264 |
+
public:
|
| 265 |
+
/// \brief Construct a TableBatchReader for the given table
|
| 266 |
+
explicit TableBatchReader(const Table& table);
|
| 267 |
+
explicit TableBatchReader(std::shared_ptr<Table> table);
|
| 268 |
+
|
| 269 |
+
std::shared_ptr<Schema> schema() const override;
|
| 270 |
+
|
| 271 |
+
Status ReadNext(std::shared_ptr<RecordBatch>* out) override;
|
| 272 |
+
|
| 273 |
+
/// \brief Set the desired maximum number of rows for record batches
|
| 274 |
+
///
|
| 275 |
+
/// The actual number of rows in each record batch may be smaller, depending
|
| 276 |
+
/// on actual chunking characteristics of each table column.
|
| 277 |
+
void set_chunksize(int64_t chunksize);
|
| 278 |
+
|
| 279 |
+
private:
|
| 280 |
+
std::shared_ptr<Table> owned_table_;
|
| 281 |
+
const Table& table_;
|
| 282 |
+
std::vector<ChunkedArray*> column_data_;
|
| 283 |
+
std::vector<int> chunk_numbers_;
|
| 284 |
+
std::vector<int64_t> chunk_offsets_;
|
| 285 |
+
int64_t absolute_row_position_;
|
| 286 |
+
int64_t max_chunksize_;
|
| 287 |
+
};
|
| 288 |
+
|
| 289 |
+
/// \brief Controls the behavior of ConcatenateTables().
|
| 290 |
+
struct ARROW_EXPORT ConcatenateTablesOptions {
|
| 291 |
+
/// If true, the schemas of the tables will be first unified with fields of
|
| 292 |
+
/// the same name being merged, according to `field_merge_options`, then each
|
| 293 |
+
/// table will be promoted to the unified schema before being concatenated.
|
| 294 |
+
/// Otherwise, all tables should have the same schema. Each column in the output table
|
| 295 |
+
/// is the result of concatenating the corresponding columns in all input tables.
|
| 296 |
+
bool unify_schemas = false;
|
| 297 |
+
|
| 298 |
+
/// options to control how fields are merged when unifying schemas
|
| 299 |
+
///
|
| 300 |
+
/// This field will be ignored if unify_schemas is false
|
| 301 |
+
Field::MergeOptions field_merge_options = Field::MergeOptions::Defaults();
|
| 302 |
+
|
| 303 |
+
static ConcatenateTablesOptions Defaults() { return {}; }
|
| 304 |
+
};
|
| 305 |
+
|
| 306 |
+
/// \brief Construct a new table from multiple input tables.
|
| 307 |
+
///
|
| 308 |
+
/// The new table is assembled from existing column chunks without copying,
|
| 309 |
+
/// if schemas are identical. If schemas do not match exactly and
|
| 310 |
+
/// unify_schemas is enabled in options (off by default), an attempt is
|
| 311 |
+
/// made to unify them, and then column chunks are converted to their
|
| 312 |
+
/// respective unified datatype, which will probably incur a copy.
|
| 313 |
+
/// :func:`arrow::PromoteTableToSchema` is used to unify schemas.
|
| 314 |
+
///
|
| 315 |
+
/// Tables are concatenated in order they are provided in and the order of
|
| 316 |
+
/// rows within tables will be preserved.
|
| 317 |
+
///
|
| 318 |
+
/// \param[in] tables a std::vector of Tables to be concatenated
|
| 319 |
+
/// \param[in] options specify how to unify schema of input tables
|
| 320 |
+
/// \param[in] memory_pool MemoryPool to be used if null-filled arrays need to
|
| 321 |
+
/// be created or if existing column chunks need to endure type conversion
|
| 322 |
+
/// \return new Table
|
| 323 |
+
ARROW_EXPORT
|
| 324 |
+
Result<std::shared_ptr<Table>> ConcatenateTables(
|
| 325 |
+
const std::vector<std::shared_ptr<Table>>& tables,
|
| 326 |
+
ConcatenateTablesOptions options = ConcatenateTablesOptions::Defaults(),
|
| 327 |
+
MemoryPool* memory_pool = default_memory_pool());
|
| 328 |
+
|
| 329 |
+
namespace compute {
|
| 330 |
+
class CastOptions;
|
| 331 |
+
}
|
| 332 |
+
|
| 333 |
+
/// \brief Promotes a table to conform to the given schema.
|
| 334 |
+
///
|
| 335 |
+
/// If a field in the schema does not have a corresponding column in
|
| 336 |
+
/// the table, a column of nulls will be added to the resulting table.
|
| 337 |
+
/// If the corresponding column is of type Null, it will be promoted
|
| 338 |
+
/// to the type specified by schema, with null values filled. The
|
| 339 |
+
/// column will be casted to the type specified by the schema.
|
| 340 |
+
///
|
| 341 |
+
/// Returns an error:
|
| 342 |
+
/// - if the corresponding column's type is not compatible with the
|
| 343 |
+
/// schema.
|
| 344 |
+
/// - if there is a column in the table that does not exist in the schema.
|
| 345 |
+
/// - if the cast fails or casting would be required but is not available.
|
| 346 |
+
///
|
| 347 |
+
/// \param[in] table the input Table
|
| 348 |
+
/// \param[in] schema the target schema to promote to
|
| 349 |
+
/// \param[in] pool The memory pool to be used if null-filled arrays need to
|
| 350 |
+
/// be created.
|
| 351 |
+
ARROW_EXPORT
|
| 352 |
+
Result<std::shared_ptr<Table>> PromoteTableToSchema(
|
| 353 |
+
const std::shared_ptr<Table>& table, const std::shared_ptr<Schema>& schema,
|
| 354 |
+
MemoryPool* pool = default_memory_pool());
|
| 355 |
+
|
| 356 |
+
/// \brief Promotes a table to conform to the given schema.
|
| 357 |
+
///
|
| 358 |
+
/// If a field in the schema does not have a corresponding column in
|
| 359 |
+
/// the table, a column of nulls will be added to the resulting table.
|
| 360 |
+
/// If the corresponding column is of type Null, it will be promoted
|
| 361 |
+
/// to the type specified by schema, with null values filled. The column
|
| 362 |
+
/// will be casted to the type specified by the schema.
|
| 363 |
+
///
|
| 364 |
+
/// Returns an error:
|
| 365 |
+
/// - if the corresponding column's type is not compatible with the
|
| 366 |
+
/// schema.
|
| 367 |
+
/// - if there is a column in the table that does not exist in the schema.
|
| 368 |
+
/// - if the cast fails or casting would be required but is not available.
|
| 369 |
+
///
|
| 370 |
+
/// \param[in] table the input Table
|
| 371 |
+
/// \param[in] schema the target schema to promote to
|
| 372 |
+
/// \param[in] options The cast options to allow promotion of types
|
| 373 |
+
/// \param[in] pool The memory pool to be used if null-filled arrays need to
|
| 374 |
+
/// be created.
|
| 375 |
+
ARROW_EXPORT
|
| 376 |
+
Result<std::shared_ptr<Table>> PromoteTableToSchema(
|
| 377 |
+
const std::shared_ptr<Table>& table, const std::shared_ptr<Schema>& schema,
|
| 378 |
+
const compute::CastOptions& options, MemoryPool* pool = default_memory_pool());
|
| 379 |
+
|
| 380 |
+
} // namespace arrow
|
shared/package-files/d1/d1119423dda95126d93a1095b189e7832c14d70332dcdd2d0af063f26349bbdf/blob
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from NativeFunction.h
|
| 4 |
+
|
| 5 |
+
#include <c10/core/Scalar.h>
|
| 6 |
+
#include <c10/core/Storage.h>
|
| 7 |
+
#include <c10/core/TensorOptions.h>
|
| 8 |
+
#include <c10/util/Deprecated.h>
|
| 9 |
+
#include <c10/util/Optional.h>
|
| 10 |
+
#include <c10/core/QScheme.h>
|
| 11 |
+
#include <ATen/core/Reduction.h>
|
| 12 |
+
#include <ATen/core/Tensor.h>
|
| 13 |
+
#include <tuple>
|
| 14 |
+
#include <vector>
|
| 15 |
+
|
| 16 |
+
|
| 17 |
+
namespace at {
|
| 18 |
+
namespace native {
|
| 19 |
+
TORCH_API at::Tensor fbgemm_pack_quantized_matrix(const at::Tensor & input);
|
| 20 |
+
TORCH_API at::Tensor fbgemm_pack_quantized_matrix(const at::Tensor & input, int64_t K, int64_t N);
|
| 21 |
+
} // namespace native
|
| 22 |
+
} // namespace at
|
shared/package-files/d1/d11309bf78977fd3a500c085e1a201e0fca9e009e8294baa0bfb58fb235019b2/blob
ADDED
|
@@ -0,0 +1,73 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import unittest
|
| 2 |
+
|
| 3 |
+
from numba.cuda.testing import CUDATestCase, skip_on_cudasim
|
| 4 |
+
from numba.tests.support import captured_stdout
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
@skip_on_cudasim("cudasim doesn't support cuda import at non-top-level")
|
| 8 |
+
class TestVecAdd(CUDATestCase):
|
| 9 |
+
"""
|
| 10 |
+
Test simple vector addition
|
| 11 |
+
"""
|
| 12 |
+
|
| 13 |
+
def setUp(self):
|
| 14 |
+
# Prevent output from this test showing
|
| 15 |
+
# up when running the test suite
|
| 16 |
+
self._captured_stdout = captured_stdout()
|
| 17 |
+
self._captured_stdout.__enter__()
|
| 18 |
+
super().setUp()
|
| 19 |
+
|
| 20 |
+
def tearDown(self):
|
| 21 |
+
# No exception type, value, or traceback
|
| 22 |
+
self._captured_stdout.__exit__(None, None, None)
|
| 23 |
+
super().tearDown()
|
| 24 |
+
|
| 25 |
+
def test_ex_vecadd(self):
|
| 26 |
+
# ex_vecadd.import.begin
|
| 27 |
+
import numpy as np
|
| 28 |
+
from numba import cuda
|
| 29 |
+
# ex_vecadd.import.end
|
| 30 |
+
|
| 31 |
+
# ex_vecadd.kernel.begin
|
| 32 |
+
@cuda.jit
|
| 33 |
+
def f(a, b, c):
|
| 34 |
+
# like threadIdx.x + (blockIdx.x * blockDim.x)
|
| 35 |
+
tid = cuda.grid(1)
|
| 36 |
+
size = len(c)
|
| 37 |
+
|
| 38 |
+
if tid < size:
|
| 39 |
+
c[tid] = a[tid] + b[tid]
|
| 40 |
+
# ex_vecadd.kernel.end
|
| 41 |
+
|
| 42 |
+
# Seed RNG for test repeatability
|
| 43 |
+
np.random.seed(1)
|
| 44 |
+
|
| 45 |
+
# ex_vecadd.allocate.begin
|
| 46 |
+
N = 100000
|
| 47 |
+
a = cuda.to_device(np.random.random(N))
|
| 48 |
+
b = cuda.to_device(np.random.random(N))
|
| 49 |
+
c = cuda.device_array_like(a)
|
| 50 |
+
# ex_vecadd.allocate.end
|
| 51 |
+
|
| 52 |
+
# ex_vecadd.forall.begin
|
| 53 |
+
f.forall(len(a))(a, b, c)
|
| 54 |
+
print(c.copy_to_host())
|
| 55 |
+
# ex_vecadd.forall.end
|
| 56 |
+
|
| 57 |
+
# ex_vecadd.launch.begin
|
| 58 |
+
# Enough threads per block for several warps per block
|
| 59 |
+
nthreads = 256
|
| 60 |
+
# Enough blocks to cover the entire vector depending on its length
|
| 61 |
+
nblocks = (len(a) // nthreads) + 1
|
| 62 |
+
f[nblocks, nthreads](a, b, c)
|
| 63 |
+
print(c.copy_to_host())
|
| 64 |
+
# ex_vecadd.launch.end
|
| 65 |
+
|
| 66 |
+
np.testing.assert_equal(
|
| 67 |
+
c.copy_to_host(),
|
| 68 |
+
a.copy_to_host() + b.copy_to_host()
|
| 69 |
+
)
|
| 70 |
+
|
| 71 |
+
|
| 72 |
+
if __name__ == "__main__":
|
| 73 |
+
unittest.main()
|
shared/package-files/d1/d115718818e3e3367847ce35bb5ff0361d08993d9749d438c918f8eb87ad8814/blob
ADDED
|
@@ -0,0 +1,27 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# created by tools/loadICU.tcl -- do not edit
|
| 2 |
+
namespace eval ::tcl::clock {
|
| 3 |
+
::msgcat::mcset mt DAYS_OF_WEEK_ABBREV [list \
|
| 4 |
+
"\u0126ad"\
|
| 5 |
+
"Tne"\
|
| 6 |
+
"Tli"\
|
| 7 |
+
"Erb"\
|
| 8 |
+
"\u0126am"\
|
| 9 |
+
"\u0120im"]
|
| 10 |
+
::msgcat::mcset mt MONTHS_ABBREV [list \
|
| 11 |
+
"Jan"\
|
| 12 |
+
"Fra"\
|
| 13 |
+
"Mar"\
|
| 14 |
+
"Apr"\
|
| 15 |
+
"Mej"\
|
| 16 |
+
"\u0120un"\
|
| 17 |
+
"Lul"\
|
| 18 |
+
"Awi"\
|
| 19 |
+
"Set"\
|
| 20 |
+
"Ott"\
|
| 21 |
+
"Nov"]
|
| 22 |
+
::msgcat::mcset mt BCE "QK"
|
| 23 |
+
::msgcat::mcset mt CE ""
|
| 24 |
+
::msgcat::mcset mt DATE_FORMAT "%A, %e ta %B, %Y"
|
| 25 |
+
::msgcat::mcset mt TIME_FORMAT_12 "%l:%M:%S %P"
|
| 26 |
+
::msgcat::mcset mt DATE_TIME_FORMAT "%A, %e ta %B, %Y %l:%M:%S %P %z"
|
| 27 |
+
}
|
shared/package-files/d1/d119859b1979b8decbc7beb0ac5349d90cade35b2e593dc7a9e7f4eb7b22c681/blob
ADDED
|
@@ -0,0 +1,2068 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import copy
|
| 2 |
+
import operator
|
| 3 |
+
|
| 4 |
+
import types as pytypes
|
| 5 |
+
import operator
|
| 6 |
+
import warnings
|
| 7 |
+
from dataclasses import make_dataclass
|
| 8 |
+
|
| 9 |
+
import llvmlite.ir
|
| 10 |
+
import numpy as np
|
| 11 |
+
|
| 12 |
+
import numba
|
| 13 |
+
from numba.parfors import parfor
|
| 14 |
+
from numba.core import types, ir, config, compiler, sigutils, cgutils
|
| 15 |
+
from numba.core.ir_utils import (
|
| 16 |
+
add_offset_to_labels,
|
| 17 |
+
replace_var_names,
|
| 18 |
+
remove_dels,
|
| 19 |
+
legalize_names,
|
| 20 |
+
rename_labels,
|
| 21 |
+
get_name_var_table,
|
| 22 |
+
visit_vars_inner,
|
| 23 |
+
get_definition,
|
| 24 |
+
guard,
|
| 25 |
+
get_call_table,
|
| 26 |
+
is_pure,
|
| 27 |
+
get_np_ufunc_typ,
|
| 28 |
+
get_unused_var_name,
|
| 29 |
+
is_const_call,
|
| 30 |
+
fixup_var_define_in_scope,
|
| 31 |
+
transfer_scope,
|
| 32 |
+
find_max_label,
|
| 33 |
+
get_global_func_typ,
|
| 34 |
+
find_topo_order,
|
| 35 |
+
)
|
| 36 |
+
from numba.core.typing import signature
|
| 37 |
+
from numba.core import lowering
|
| 38 |
+
from numba.parfors.parfor import ensure_parallel_support
|
| 39 |
+
from numba.core.errors import (
|
| 40 |
+
NumbaParallelSafetyWarning, NotDefinedError, CompilerError, InternalError,
|
| 41 |
+
)
|
| 42 |
+
from numba.parfors.parfor_lowering_utils import ParforLoweringBuilder
|
| 43 |
+
|
| 44 |
+
|
| 45 |
+
class ParforLower(lowering.Lower):
|
| 46 |
+
"""This is a custom lowering class that extends standard lowering so as
|
| 47 |
+
to accommodate parfor.Parfor nodes."""
|
| 48 |
+
|
| 49 |
+
# custom instruction lowering to handle parfor nodes
|
| 50 |
+
def lower_inst(self, inst):
|
| 51 |
+
if isinstance(inst, parfor.Parfor):
|
| 52 |
+
_lower_parfor_parallel(self, inst)
|
| 53 |
+
else:
|
| 54 |
+
super().lower_inst(inst)
|
| 55 |
+
|
| 56 |
+
@property
|
| 57 |
+
def _disable_sroa_like_opt(self):
|
| 58 |
+
"""
|
| 59 |
+
Force disable this because Parfor use-defs is incompatible---it only
|
| 60 |
+
considers use-defs in blocks that must be executing.
|
| 61 |
+
See https://github.com/numba/numba/commit/017e2ff9db87fc34149b49dd5367ecbf0bb45268
|
| 62 |
+
"""
|
| 63 |
+
return True
|
| 64 |
+
|
| 65 |
+
|
| 66 |
+
def _lower_parfor_parallel(lowerer, parfor):
|
| 67 |
+
if parfor.lowerer is None:
|
| 68 |
+
return _lower_parfor_parallel_std(lowerer, parfor)
|
| 69 |
+
else:
|
| 70 |
+
return parfor.lowerer(lowerer, parfor)
|
| 71 |
+
|
| 72 |
+
|
| 73 |
+
def _lower_parfor_parallel_std(lowerer, parfor):
|
| 74 |
+
"""Lowerer that handles LLVM code generation for parfor.
|
| 75 |
+
This function lowers a parfor IR node to LLVM.
|
| 76 |
+
The general approach is as follows:
|
| 77 |
+
1) The code from the parfor's init block is lowered normally
|
| 78 |
+
in the context of the current function.
|
| 79 |
+
2) The body of the parfor is transformed into a gufunc function.
|
| 80 |
+
3) Code is inserted into the main function that calls do_scheduling
|
| 81 |
+
to divide the iteration space for each thread, allocates
|
| 82 |
+
reduction arrays, calls the gufunc function, and then invokes
|
| 83 |
+
the reduction function across the reduction arrays to produce
|
| 84 |
+
the final reduction values.
|
| 85 |
+
"""
|
| 86 |
+
from numba.np.ufunc.parallel import get_thread_count
|
| 87 |
+
|
| 88 |
+
ensure_parallel_support()
|
| 89 |
+
typingctx = lowerer.context.typing_context
|
| 90 |
+
targetctx = lowerer.context
|
| 91 |
+
builder = lowerer.builder
|
| 92 |
+
# We copy the typemap here because for race condition variable we'll
|
| 93 |
+
# update their type to array so they can be updated by the gufunc.
|
| 94 |
+
orig_typemap = lowerer.fndesc.typemap
|
| 95 |
+
# replace original typemap with copy and restore the original at the end.
|
| 96 |
+
lowerer.fndesc.typemap = copy.copy(orig_typemap)
|
| 97 |
+
if config.DEBUG_ARRAY_OPT:
|
| 98 |
+
print("lowerer.fndesc", lowerer.fndesc, type(lowerer.fndesc))
|
| 99 |
+
typemap = lowerer.fndesc.typemap
|
| 100 |
+
varmap = lowerer.varmap
|
| 101 |
+
|
| 102 |
+
if config.DEBUG_ARRAY_OPT:
|
| 103 |
+
print("_lower_parfor_parallel")
|
| 104 |
+
parfor.dump()
|
| 105 |
+
|
| 106 |
+
loc = parfor.init_block.loc
|
| 107 |
+
scope = parfor.init_block.scope
|
| 108 |
+
|
| 109 |
+
# produce instructions for init_block
|
| 110 |
+
if config.DEBUG_ARRAY_OPT:
|
| 111 |
+
print("init_block = ", parfor.init_block, " ", type(parfor.init_block))
|
| 112 |
+
for instr in parfor.init_block.body:
|
| 113 |
+
if config.DEBUG_ARRAY_OPT:
|
| 114 |
+
print("lower init_block instr = ", instr)
|
| 115 |
+
lowerer.lower_inst(instr)
|
| 116 |
+
|
| 117 |
+
for racevar in parfor.races:
|
| 118 |
+
if racevar not in varmap:
|
| 119 |
+
rvtyp = typemap[racevar]
|
| 120 |
+
rv = ir.Var(scope, racevar, loc)
|
| 121 |
+
lowerer._alloca_var(rv.name, rvtyp)
|
| 122 |
+
|
| 123 |
+
alias_map = {}
|
| 124 |
+
arg_aliases = {}
|
| 125 |
+
numba.parfors.parfor.find_potential_aliases_parfor(parfor, parfor.params, typemap,
|
| 126 |
+
lowerer.func_ir, alias_map, arg_aliases)
|
| 127 |
+
if config.DEBUG_ARRAY_OPT:
|
| 128 |
+
print("alias_map", alias_map)
|
| 129 |
+
print("arg_aliases", arg_aliases)
|
| 130 |
+
|
| 131 |
+
# run get_parfor_outputs() and get_parfor_reductions() before gufunc creation
|
| 132 |
+
# since Jumps are modified so CFG of loop_body dict will become invalid
|
| 133 |
+
assert parfor.params is not None
|
| 134 |
+
|
| 135 |
+
parfor_output_arrays = numba.parfors.parfor.get_parfor_outputs(
|
| 136 |
+
parfor, parfor.params)
|
| 137 |
+
parfor_redvars, parfor_reddict = parfor.redvars, parfor.reddict
|
| 138 |
+
if config.DEBUG_ARRAY_OPT:
|
| 139 |
+
print("parfor_redvars:", parfor_redvars)
|
| 140 |
+
print("parfor_reddict:", parfor_reddict)
|
| 141 |
+
|
| 142 |
+
# init reduction array allocation here.
|
| 143 |
+
nredvars = len(parfor_redvars)
|
| 144 |
+
redarrs = {}
|
| 145 |
+
to_cleanup = []
|
| 146 |
+
if nredvars > 0:
|
| 147 |
+
# reduction arrays outer dimension equal to thread count
|
| 148 |
+
scope = parfor.init_block.scope
|
| 149 |
+
loc = parfor.init_block.loc
|
| 150 |
+
pfbdr = ParforLoweringBuilder(lowerer=lowerer, scope=scope, loc=loc)
|
| 151 |
+
|
| 152 |
+
# Get the Numba internal function to call to get the thread count.
|
| 153 |
+
get_num_threads = pfbdr.bind_global_function(
|
| 154 |
+
fobj=numba.np.ufunc.parallel._iget_num_threads,
|
| 155 |
+
ftype=get_global_func_typ(numba.np.ufunc.parallel._iget_num_threads),
|
| 156 |
+
args=()
|
| 157 |
+
)
|
| 158 |
+
|
| 159 |
+
# Insert the call to assign the thread count to a variable.
|
| 160 |
+
num_threads_var = pfbdr.assign(
|
| 161 |
+
rhs=pfbdr.call(get_num_threads, args=[]),
|
| 162 |
+
typ=types.intp,
|
| 163 |
+
name="num_threads_var")
|
| 164 |
+
|
| 165 |
+
# For each reduction variable...
|
| 166 |
+
for i in range(nredvars):
|
| 167 |
+
red_name = parfor_redvars[i]
|
| 168 |
+
# Get the type of the reduction variable.
|
| 169 |
+
redvar_typ = lowerer.fndesc.typemap[red_name]
|
| 170 |
+
# Get the ir.Var for the reduction variable.
|
| 171 |
+
redvar = ir.Var(scope, red_name, loc)
|
| 172 |
+
# Get the type of the array that holds the per-thread
|
| 173 |
+
# reduction variables.
|
| 174 |
+
redarrvar_typ = redtyp_to_redarraytype(redvar_typ)
|
| 175 |
+
reddtype = redarrvar_typ.dtype
|
| 176 |
+
if config.DEBUG_ARRAY_OPT:
|
| 177 |
+
print(
|
| 178 |
+
"reduction_info",
|
| 179 |
+
red_name,
|
| 180 |
+
redvar_typ,
|
| 181 |
+
redarrvar_typ,
|
| 182 |
+
reddtype,
|
| 183 |
+
types.DType(reddtype),
|
| 184 |
+
num_threads_var,
|
| 185 |
+
type(num_threads_var)
|
| 186 |
+
)
|
| 187 |
+
|
| 188 |
+
# If this is reduction over an array,
|
| 189 |
+
# the reduction array has just one added per-worker dimension.
|
| 190 |
+
if isinstance(redvar_typ, types.npytypes.Array):
|
| 191 |
+
redarrdim = redvar_typ.ndim + 1
|
| 192 |
+
else:
|
| 193 |
+
redarrdim = 1
|
| 194 |
+
|
| 195 |
+
# Reduction array is created and initialized to the initial reduction value.
|
| 196 |
+
|
| 197 |
+
# First create a var for the numpy empty ufunc.
|
| 198 |
+
glbl_np_empty = pfbdr.bind_global_function(
|
| 199 |
+
fobj=np.empty,
|
| 200 |
+
ftype=get_np_ufunc_typ(np.empty, pfbdr._typingctx),
|
| 201 |
+
args=(
|
| 202 |
+
types.UniTuple(types.intp, redarrdim),
|
| 203 |
+
),
|
| 204 |
+
kws={'dtype': types.DType(reddtype)}
|
| 205 |
+
)
|
| 206 |
+
|
| 207 |
+
size_var_list = [num_threads_var]
|
| 208 |
+
|
| 209 |
+
# If this is a reduction over an array...
|
| 210 |
+
if isinstance(redvar_typ, types.npytypes.Array):
|
| 211 |
+
# Add code to get the shape of the array being reduced over.
|
| 212 |
+
redshape_var = pfbdr.assign(
|
| 213 |
+
rhs=ir.Expr.getattr(redvar, "shape", loc),
|
| 214 |
+
typ=types.UniTuple(types.intp, redvar_typ.ndim),
|
| 215 |
+
name="redarr_shape",
|
| 216 |
+
)
|
| 217 |
+
|
| 218 |
+
# Add the dimension sizes of the array being reduced over to the tuple of sizes pass to empty.
|
| 219 |
+
for j in range(redvar_typ.ndim):
|
| 220 |
+
onedimvar = pfbdr.assign(
|
| 221 |
+
rhs=ir.Expr.static_getitem(redshape_var, j, None, loc),
|
| 222 |
+
typ=types.intp,
|
| 223 |
+
name="redshapeonedim",
|
| 224 |
+
)
|
| 225 |
+
size_var_list.append(onedimvar)
|
| 226 |
+
|
| 227 |
+
# Empty call takes tuple of sizes. Create here and fill in outer dimension (num threads).
|
| 228 |
+
size_var = pfbdr.make_tuple_variable(
|
| 229 |
+
size_var_list, name='tuple_size_var',
|
| 230 |
+
)
|
| 231 |
+
|
| 232 |
+
# Resolve dtype
|
| 233 |
+
cval = pfbdr._typingctx.resolve_value_type(reddtype)
|
| 234 |
+
dt = pfbdr.make_const_variable(cval=cval, typ=types.DType(reddtype))
|
| 235 |
+
# Add call to empty passing the size var tuple.
|
| 236 |
+
empty_call = pfbdr.call(glbl_np_empty, args=[size_var, dt])
|
| 237 |
+
|
| 238 |
+
redarr_var = pfbdr.assign(
|
| 239 |
+
rhs=empty_call, typ=redarrvar_typ, name="redarr",
|
| 240 |
+
)
|
| 241 |
+
|
| 242 |
+
# Remember mapping of original reduction array to the newly created per-worker reduction array.
|
| 243 |
+
redarrs[redvar.name] = redarr_var
|
| 244 |
+
to_cleanup.append(redarr_var)
|
| 245 |
+
|
| 246 |
+
init_val = parfor_reddict[red_name].init_val
|
| 247 |
+
|
| 248 |
+
if init_val is not None:
|
| 249 |
+
if isinstance(redvar_typ, types.npytypes.Array):
|
| 250 |
+
# Create an array of identity values for the reduction.
|
| 251 |
+
# First, create a variable for np.full.
|
| 252 |
+
full_func_node = pfbdr.bind_global_function(
|
| 253 |
+
fobj=np.full,
|
| 254 |
+
ftype=get_np_ufunc_typ(np.full, pfbdr._typingctx),
|
| 255 |
+
args=(
|
| 256 |
+
types.UniTuple(types.intp, redvar_typ.ndim),
|
| 257 |
+
reddtype,
|
| 258 |
+
),
|
| 259 |
+
kws={'dtype': types.DType(reddtype)},
|
| 260 |
+
)
|
| 261 |
+
|
| 262 |
+
# Then create a var with the identify value.
|
| 263 |
+
init_val_var = pfbdr.make_const_variable(
|
| 264 |
+
cval=init_val,
|
| 265 |
+
typ=reddtype,
|
| 266 |
+
name="init_val",
|
| 267 |
+
)
|
| 268 |
+
|
| 269 |
+
# Then, call np.full with the shape of the reduction array and the identity value.
|
| 270 |
+
full_call = pfbdr.call(
|
| 271 |
+
full_func_node, args=[redshape_var, init_val_var, dt],
|
| 272 |
+
)
|
| 273 |
+
|
| 274 |
+
redtoset = pfbdr.assign(
|
| 275 |
+
rhs=full_call,
|
| 276 |
+
typ=redvar_typ,
|
| 277 |
+
name="redtoset",
|
| 278 |
+
)
|
| 279 |
+
# rettoset is an array from np.full() and must be released
|
| 280 |
+
to_cleanup.append(redtoset)
|
| 281 |
+
else:
|
| 282 |
+
redtoset = pfbdr.make_const_variable(
|
| 283 |
+
cval=init_val,
|
| 284 |
+
typ=reddtype,
|
| 285 |
+
name="redtoset",
|
| 286 |
+
)
|
| 287 |
+
else:
|
| 288 |
+
redtoset = redvar
|
| 289 |
+
|
| 290 |
+
if config.DEBUG_ARRAY_OPT_RUNTIME:
|
| 291 |
+
res_print_str = "res_print1 for redvar " + str(redvar) + ":"
|
| 292 |
+
strconsttyp = types.StringLiteral(res_print_str)
|
| 293 |
+
|
| 294 |
+
lhs = pfbdr.make_const_variable(
|
| 295 |
+
cval=res_print_str,
|
| 296 |
+
typ=strconsttyp,
|
| 297 |
+
name="str_const",
|
| 298 |
+
)
|
| 299 |
+
|
| 300 |
+
res_print = ir.Print(args=[lhs, redvar],
|
| 301 |
+
vararg=None, loc=loc)
|
| 302 |
+
lowerer.fndesc.calltypes[res_print] = signature(types.none,
|
| 303 |
+
typemap[lhs.name],
|
| 304 |
+
typemap[redvar.name])
|
| 305 |
+
print("res_print_redvar", res_print)
|
| 306 |
+
lowerer.lower_inst(res_print)
|
| 307 |
+
|
| 308 |
+
|
| 309 |
+
# For each thread, initialize the per-worker reduction array to
|
| 310 |
+
# the current reduction array value.
|
| 311 |
+
|
| 312 |
+
# Get the Numba type of the variable that holds the thread count.
|
| 313 |
+
num_thread_type = typemap[num_threads_var.name]
|
| 314 |
+
# Get the LLVM type of the thread count variable.
|
| 315 |
+
ntllvm_type = targetctx.get_value_type(num_thread_type)
|
| 316 |
+
# Create a LLVM variable to hold the loop index.
|
| 317 |
+
alloc_loop_var = cgutils.alloca_once(builder, ntllvm_type)
|
| 318 |
+
# Associate this LLVM variable to a Numba IR variable so that
|
| 319 |
+
# we can use setitem IR builder.
|
| 320 |
+
# Create a Numba IR variable.
|
| 321 |
+
numba_ir_loop_index_var = scope.redefine("$loop_index", loc)
|
| 322 |
+
# Give that variable the right type.
|
| 323 |
+
typemap[numba_ir_loop_index_var.name] = num_thread_type
|
| 324 |
+
# Associate this Numba variable to the LLVM variable in the
|
| 325 |
+
# lowerer's varmap.
|
| 326 |
+
lowerer.varmap[numba_ir_loop_index_var.name] = alloc_loop_var
|
| 327 |
+
# Insert a loop into the outputed LLVM that goes from 0 to
|
| 328 |
+
# the current thread count.
|
| 329 |
+
with cgutils.for_range(builder, lowerer.loadvar(num_threads_var.name), intp=ntllvm_type) as loop:
|
| 330 |
+
# Store the loop index into the alloca'd LLVM loop index variable.
|
| 331 |
+
builder.store(loop.index, alloc_loop_var)
|
| 332 |
+
# Initialize one element of the reduction array using the Numba
|
| 333 |
+
# IR variable associated with this loop's index.
|
| 334 |
+
pfbdr.setitem(obj=redarr_var, index=numba_ir_loop_index_var, val=redtoset)
|
| 335 |
+
|
| 336 |
+
# compile parfor body as a separate function to be used with GUFuncWrapper
|
| 337 |
+
flags = parfor.flags.copy()
|
| 338 |
+
flags.error_model = "numpy"
|
| 339 |
+
# Can't get here unless flags.auto_parallel == ParallelOptions(True)
|
| 340 |
+
index_var_typ = typemap[parfor.loop_nests[0].index_variable.name]
|
| 341 |
+
# index variables should have the same type, check rest of indices
|
| 342 |
+
for l in parfor.loop_nests[1:]:
|
| 343 |
+
assert typemap[l.index_variable.name] == index_var_typ
|
| 344 |
+
numba.parfors.parfor.sequential_parfor_lowering = True
|
| 345 |
+
try:
|
| 346 |
+
(func,
|
| 347 |
+
func_args,
|
| 348 |
+
func_sig,
|
| 349 |
+
func_arg_types,
|
| 350 |
+
exp_name_to_tuple_var) = _create_gufunc_for_parfor_body(
|
| 351 |
+
lowerer, parfor, typemap, typingctx, targetctx, flags, {},
|
| 352 |
+
bool(alias_map), index_var_typ, parfor.races)
|
| 353 |
+
finally:
|
| 354 |
+
numba.parfors.parfor.sequential_parfor_lowering = False
|
| 355 |
+
|
| 356 |
+
# get the shape signature
|
| 357 |
+
func_args = ['sched'] + func_args
|
| 358 |
+
num_reductions = len(parfor_redvars)
|
| 359 |
+
num_inputs = len(func_args) - len(parfor_output_arrays) - num_reductions
|
| 360 |
+
if config.DEBUG_ARRAY_OPT:
|
| 361 |
+
print("func_args = ", func_args)
|
| 362 |
+
print("num_inputs = ", num_inputs)
|
| 363 |
+
print("parfor_outputs = ", parfor_output_arrays)
|
| 364 |
+
print("parfor_redvars = ", parfor_redvars)
|
| 365 |
+
print("num_reductions = ", num_reductions)
|
| 366 |
+
gu_signature = _create_shape_signature(
|
| 367 |
+
parfor.get_shape_classes,
|
| 368 |
+
num_inputs,
|
| 369 |
+
num_reductions,
|
| 370 |
+
func_args,
|
| 371 |
+
func_sig,
|
| 372 |
+
parfor.races,
|
| 373 |
+
typemap)
|
| 374 |
+
if config.DEBUG_ARRAY_OPT:
|
| 375 |
+
print("gu_signature = ", gu_signature)
|
| 376 |
+
|
| 377 |
+
# call the func in parallel by wrapping it with ParallelGUFuncBuilder
|
| 378 |
+
loop_ranges = [(l.start, l.stop, l.step) for l in parfor.loop_nests]
|
| 379 |
+
if config.DEBUG_ARRAY_OPT:
|
| 380 |
+
print("loop_nests = ", parfor.loop_nests)
|
| 381 |
+
print("loop_ranges = ", loop_ranges)
|
| 382 |
+
call_parallel_gufunc(
|
| 383 |
+
lowerer,
|
| 384 |
+
func,
|
| 385 |
+
gu_signature,
|
| 386 |
+
func_sig,
|
| 387 |
+
func_args,
|
| 388 |
+
func_arg_types,
|
| 389 |
+
loop_ranges,
|
| 390 |
+
parfor_redvars,
|
| 391 |
+
parfor_reddict,
|
| 392 |
+
redarrs,
|
| 393 |
+
parfor.init_block,
|
| 394 |
+
index_var_typ,
|
| 395 |
+
parfor.races,
|
| 396 |
+
exp_name_to_tuple_var)
|
| 397 |
+
|
| 398 |
+
if nredvars > 0:
|
| 399 |
+
_parfor_lowering_finalize_reduction(
|
| 400 |
+
parfor, redarrs, lowerer, parfor_reddict, num_threads_var,
|
| 401 |
+
)
|
| 402 |
+
|
| 403 |
+
# Cleanup reduction variable
|
| 404 |
+
for v in to_cleanup:
|
| 405 |
+
lowerer.lower_inst(ir.Del(v.name, loc=loc))
|
| 406 |
+
# Restore the original typemap of the function that was replaced temporarily at the
|
| 407 |
+
# Beginning of this function.
|
| 408 |
+
lowerer.fndesc.typemap = orig_typemap
|
| 409 |
+
|
| 410 |
+
if config.DEBUG_ARRAY_OPT:
|
| 411 |
+
print("_lower_parfor_parallel done")
|
| 412 |
+
|
| 413 |
+
|
| 414 |
+
_ReductionInfo = make_dataclass(
|
| 415 |
+
"_ReductionInfo",
|
| 416 |
+
[
|
| 417 |
+
"redvar_info",
|
| 418 |
+
"redvar_name",
|
| 419 |
+
"redvar_typ",
|
| 420 |
+
"redarr_var",
|
| 421 |
+
"redarr_typ",
|
| 422 |
+
"init_val",
|
| 423 |
+
],
|
| 424 |
+
frozen=True,
|
| 425 |
+
)
|
| 426 |
+
|
| 427 |
+
|
| 428 |
+
def _parfor_lowering_finalize_reduction(
|
| 429 |
+
parfor,
|
| 430 |
+
redarrs,
|
| 431 |
+
lowerer,
|
| 432 |
+
parfor_reddict,
|
| 433 |
+
thread_count_var,
|
| 434 |
+
):
|
| 435 |
+
"""Emit code to finalize the reduction from the intermediate values of
|
| 436 |
+
each thread.
|
| 437 |
+
"""
|
| 438 |
+
# For each reduction variable
|
| 439 |
+
for redvar_name, redarr_var in redarrs.items():
|
| 440 |
+
# Pseudo-code for this loop body:
|
| 441 |
+
# tmp = redarr[0]
|
| 442 |
+
# for i in range(1, thread_count):
|
| 443 |
+
# tmp = reduce_op(redarr[i], tmp)
|
| 444 |
+
# reduction_result = tmp
|
| 445 |
+
redvar_typ = lowerer.fndesc.typemap[redvar_name]
|
| 446 |
+
redarr_typ = lowerer.fndesc.typemap[redarr_var.name]
|
| 447 |
+
init_val = lowerer.loadvar(redvar_name)
|
| 448 |
+
|
| 449 |
+
reduce_info = _ReductionInfo(
|
| 450 |
+
redvar_info = parfor_reddict[redvar_name],
|
| 451 |
+
redvar_name=redvar_name,
|
| 452 |
+
redvar_typ=redvar_typ,
|
| 453 |
+
redarr_var=redarr_var,
|
| 454 |
+
redarr_typ=redarr_typ,
|
| 455 |
+
init_val=init_val,
|
| 456 |
+
)
|
| 457 |
+
# generate code for combining reduction variable with thread output
|
| 458 |
+
handler = (_lower_trivial_inplace_binops
|
| 459 |
+
if reduce_info.redvar_info.redop is not None
|
| 460 |
+
else _lower_non_trivial_reduce)
|
| 461 |
+
handler(parfor, lowerer, thread_count_var, reduce_info)
|
| 462 |
+
|
| 463 |
+
|
| 464 |
+
class ParforsUnexpectedReduceNodeError(InternalError):
|
| 465 |
+
def __init__(self, inst):
|
| 466 |
+
super().__init__(f"Unknown reduce instruction node: {inst}")
|
| 467 |
+
|
| 468 |
+
|
| 469 |
+
def _lower_trivial_inplace_binops(parfor, lowerer, thread_count_var, reduce_info):
|
| 470 |
+
"""Lower trivial inplace-binop reduction.
|
| 471 |
+
"""
|
| 472 |
+
for inst in reduce_info.redvar_info.reduce_nodes:
|
| 473 |
+
# Var assigns to Var?
|
| 474 |
+
if _lower_var_to_var_assign(lowerer, inst):
|
| 475 |
+
pass
|
| 476 |
+
# Is inplace-binop for the reduction?
|
| 477 |
+
elif _is_right_op_and_rhs_is_init(inst, reduce_info.redvar_name, "inplace_binop"):
|
| 478 |
+
fn = inst.value.fn
|
| 479 |
+
redvar_result = _emit_binop_reduce_call(
|
| 480 |
+
fn, lowerer, thread_count_var, reduce_info,
|
| 481 |
+
)
|
| 482 |
+
lowerer.storevar(redvar_result, name=inst.target.name)
|
| 483 |
+
# Is binop for the reduction?
|
| 484 |
+
elif _is_right_op_and_rhs_is_init(inst, reduce_info.redvar_name, "binop"):
|
| 485 |
+
fn = inst.value.fn
|
| 486 |
+
redvar_result = _emit_binop_reduce_call(
|
| 487 |
+
fn, lowerer, thread_count_var, reduce_info,
|
| 488 |
+
)
|
| 489 |
+
lowerer.storevar(redvar_result, name=inst.target.name)
|
| 490 |
+
# Otherwise?
|
| 491 |
+
else:
|
| 492 |
+
raise ParforsUnexpectedReduceNodeError(inst)
|
| 493 |
+
|
| 494 |
+
# XXX: This seems like a hack to stop the loop with this condition.
|
| 495 |
+
if _fix_redvar_name_ssa_mismatch(parfor, lowerer, inst,
|
| 496 |
+
reduce_info.redvar_name):
|
| 497 |
+
break
|
| 498 |
+
if config.DEBUG_ARRAY_OPT_RUNTIME:
|
| 499 |
+
varname = reduce_info.redvar_name
|
| 500 |
+
lowerer.print_variable(
|
| 501 |
+
f"{parfor.loc}: parfor {fn.__name__} reduction {varname} =",
|
| 502 |
+
varname,
|
| 503 |
+
)
|
| 504 |
+
|
| 505 |
+
|
| 506 |
+
def _lower_non_trivial_reduce(parfor, lowerer, thread_count_var, reduce_info):
|
| 507 |
+
"""Lower non-trivial reduction such as call to `functools.reduce()`.
|
| 508 |
+
"""
|
| 509 |
+
init_name = f"{reduce_info.redvar_name}#init"
|
| 510 |
+
# The init_name variable is not defined at this point.
|
| 511 |
+
lowerer.fndesc.typemap.setdefault(init_name, reduce_info.redvar_typ)
|
| 512 |
+
# Emit a sequence of the reduction operation for each intermediate result
|
| 513 |
+
# of each thread.
|
| 514 |
+
num_thread_llval = lowerer.loadvar(thread_count_var.name)
|
| 515 |
+
with cgutils.for_range(lowerer.builder, num_thread_llval) as loop:
|
| 516 |
+
tid = loop.index
|
| 517 |
+
for inst in reduce_info.redvar_info.reduce_nodes:
|
| 518 |
+
# Var assigns to Var?
|
| 519 |
+
if _lower_var_to_var_assign(lowerer, inst):
|
| 520 |
+
pass
|
| 521 |
+
# The reduction operation?
|
| 522 |
+
elif (isinstance(inst, ir.Assign)
|
| 523 |
+
and any(var.name == init_name for var in inst.list_vars())):
|
| 524 |
+
elem = _emit_getitem_call(tid, lowerer, reduce_info)
|
| 525 |
+
lowerer.storevar(elem, init_name)
|
| 526 |
+
lowerer.lower_inst(inst)
|
| 527 |
+
|
| 528 |
+
# Otherwise?
|
| 529 |
+
else:
|
| 530 |
+
raise ParforsUnexpectedReduceNodeError(inst)
|
| 531 |
+
|
| 532 |
+
# XXX: This seems like a hack to stop the loop with this condition.
|
| 533 |
+
if _fix_redvar_name_ssa_mismatch(parfor, lowerer, inst,
|
| 534 |
+
reduce_info.redvar_name):
|
| 535 |
+
break
|
| 536 |
+
|
| 537 |
+
if config.DEBUG_ARRAY_OPT_RUNTIME:
|
| 538 |
+
varname = reduce_info.redvar_name
|
| 539 |
+
lowerer.print_variable(
|
| 540 |
+
f"{parfor.loc}: parfor non-trivial reduction {varname} =",
|
| 541 |
+
varname,
|
| 542 |
+
)
|
| 543 |
+
|
| 544 |
+
def _lower_var_to_var_assign(lowerer, inst):
|
| 545 |
+
"""Lower Var->Var assignment.
|
| 546 |
+
|
| 547 |
+
Returns True if-and-only-if `inst` is a Var->Var assignment.
|
| 548 |
+
"""
|
| 549 |
+
if isinstance(inst, ir.Assign) and isinstance(inst.value, ir.Var):
|
| 550 |
+
loaded = lowerer.loadvar(inst.value.name)
|
| 551 |
+
lowerer.storevar(loaded, name=inst.target.name)
|
| 552 |
+
return True
|
| 553 |
+
return False
|
| 554 |
+
|
| 555 |
+
def _emit_getitem_call(idx, lowerer, reduce_info):
|
| 556 |
+
"""Emit call to ``redarr_var[idx]``
|
| 557 |
+
"""
|
| 558 |
+
def reducer_getitem(redarr, index):
|
| 559 |
+
return redarr[index]
|
| 560 |
+
|
| 561 |
+
builder = lowerer.builder
|
| 562 |
+
ctx = lowerer.context
|
| 563 |
+
redarr_typ = reduce_info.redarr_typ
|
| 564 |
+
arg_arr = lowerer.loadvar(reduce_info.redarr_var.name)
|
| 565 |
+
args = (arg_arr, idx)
|
| 566 |
+
sig = signature(reduce_info.redvar_typ, redarr_typ, types.intp)
|
| 567 |
+
elem = ctx.compile_internal(builder, reducer_getitem, sig, args)
|
| 568 |
+
return elem
|
| 569 |
+
|
| 570 |
+
|
| 571 |
+
def _emit_binop_reduce_call(binop, lowerer, thread_count_var, reduce_info):
|
| 572 |
+
"""Emit call to the ``binop`` for the reduction variable.
|
| 573 |
+
"""
|
| 574 |
+
|
| 575 |
+
def reduction_add(thread_count, redarr, init):
|
| 576 |
+
c = init
|
| 577 |
+
for i in range(thread_count):
|
| 578 |
+
c += redarr[i]
|
| 579 |
+
return c
|
| 580 |
+
|
| 581 |
+
def reduction_mul(thread_count, redarr, init):
|
| 582 |
+
c = init
|
| 583 |
+
for i in range(thread_count):
|
| 584 |
+
c *= redarr[i]
|
| 585 |
+
return c
|
| 586 |
+
|
| 587 |
+
kernel = {
|
| 588 |
+
operator.iadd: reduction_add,
|
| 589 |
+
operator.isub: reduction_add,
|
| 590 |
+
operator.add: reduction_add,
|
| 591 |
+
operator.sub: reduction_add,
|
| 592 |
+
operator.imul: reduction_mul,
|
| 593 |
+
operator.ifloordiv: reduction_mul,
|
| 594 |
+
operator.itruediv: reduction_mul,
|
| 595 |
+
operator.mul: reduction_mul,
|
| 596 |
+
operator.floordiv: reduction_mul,
|
| 597 |
+
operator.truediv: reduction_mul,
|
| 598 |
+
}[binop]
|
| 599 |
+
|
| 600 |
+
ctx = lowerer.context
|
| 601 |
+
builder = lowerer.builder
|
| 602 |
+
redarr_typ = reduce_info.redarr_typ
|
| 603 |
+
arg_arr = lowerer.loadvar(reduce_info.redarr_var.name)
|
| 604 |
+
|
| 605 |
+
if config.DEBUG_ARRAY_OPT_RUNTIME:
|
| 606 |
+
init_var = reduce_info.redarr_var.scope.get(reduce_info.redvar_name)
|
| 607 |
+
res_print = ir.Print(
|
| 608 |
+
args=[reduce_info.redarr_var, init_var], vararg=None,
|
| 609 |
+
loc=lowerer.loc,
|
| 610 |
+
)
|
| 611 |
+
typemap = lowerer.fndesc.typemap
|
| 612 |
+
lowerer.fndesc.calltypes[res_print] = signature(
|
| 613 |
+
types.none, typemap[reduce_info.redarr_var.name],
|
| 614 |
+
typemap[init_var.name],
|
| 615 |
+
)
|
| 616 |
+
lowerer.lower_inst(res_print)
|
| 617 |
+
|
| 618 |
+
arg_thread_count = lowerer.loadvar(thread_count_var.name)
|
| 619 |
+
args = (arg_thread_count, arg_arr, reduce_info.init_val)
|
| 620 |
+
sig = signature(
|
| 621 |
+
reduce_info.redvar_typ, types.uintp, redarr_typ, reduce_info.redvar_typ,
|
| 622 |
+
)
|
| 623 |
+
|
| 624 |
+
redvar_result = ctx.compile_internal(builder, kernel, sig, args)
|
| 625 |
+
return redvar_result
|
| 626 |
+
|
| 627 |
+
|
| 628 |
+
def _is_right_op_and_rhs_is_init(inst, redvar_name, op):
|
| 629 |
+
"""Is ``inst`` an inplace-binop and the RHS is the reduction init?
|
| 630 |
+
"""
|
| 631 |
+
if not isinstance(inst, ir.Assign):
|
| 632 |
+
return False
|
| 633 |
+
rhs = inst.value
|
| 634 |
+
if not isinstance(rhs, ir.Expr):
|
| 635 |
+
return False
|
| 636 |
+
if rhs.op != op:
|
| 637 |
+
return False
|
| 638 |
+
if rhs.rhs.name != f"{redvar_name}#init":
|
| 639 |
+
return False
|
| 640 |
+
return True
|
| 641 |
+
|
| 642 |
+
|
| 643 |
+
def _fix_redvar_name_ssa_mismatch(parfor, lowerer, inst, redvar_name):
|
| 644 |
+
"""Fix reduction variable name mismatch due to SSA.
|
| 645 |
+
"""
|
| 646 |
+
# Only process reduction statements post-gufunc execution
|
| 647 |
+
# until we see an assignment with a left-hand side to the
|
| 648 |
+
# reduction variable's name. This fixes problems with
|
| 649 |
+
# cases where there are multiple assignments to the
|
| 650 |
+
# reduction variable in the parfor.
|
| 651 |
+
scope = parfor.init_block.scope
|
| 652 |
+
if isinstance(inst, ir.Assign):
|
| 653 |
+
try:
|
| 654 |
+
reduction_var = scope.get_exact(redvar_name)
|
| 655 |
+
except NotDefinedError:
|
| 656 |
+
# Ideally, this shouldn't happen. The redvar name
|
| 657 |
+
# missing from scope indicates an error from
|
| 658 |
+
# other rewrite passes.
|
| 659 |
+
is_same_source_var = redvar_name == inst.target.name
|
| 660 |
+
else:
|
| 661 |
+
# Because of SSA, the redvar and target var of
|
| 662 |
+
# the current assignment would be different even
|
| 663 |
+
# though they refer to the same source-level var.
|
| 664 |
+
redvar_unver_name = reduction_var.unversioned_name
|
| 665 |
+
target_unver_name = inst.target.unversioned_name
|
| 666 |
+
is_same_source_var = redvar_unver_name == target_unver_name
|
| 667 |
+
|
| 668 |
+
if is_same_source_var:
|
| 669 |
+
# If redvar is different from target var, add an
|
| 670 |
+
# assignment to put target var into redvar.
|
| 671 |
+
if redvar_name != inst.target.name:
|
| 672 |
+
val = lowerer.loadvar(inst.target.name)
|
| 673 |
+
lowerer.storevar(val, name=redvar_name)
|
| 674 |
+
return True
|
| 675 |
+
|
| 676 |
+
return False
|
| 677 |
+
|
| 678 |
+
def _create_shape_signature(
|
| 679 |
+
get_shape_classes,
|
| 680 |
+
num_inputs,
|
| 681 |
+
num_reductions,
|
| 682 |
+
args,
|
| 683 |
+
func_sig,
|
| 684 |
+
races,
|
| 685 |
+
typemap):
|
| 686 |
+
'''Create shape signature for GUFunc
|
| 687 |
+
'''
|
| 688 |
+
if config.DEBUG_ARRAY_OPT:
|
| 689 |
+
print("_create_shape_signature", num_inputs, num_reductions, args, races)
|
| 690 |
+
for i in args[1:]:
|
| 691 |
+
print("argument", i, type(i), get_shape_classes(i, typemap=typemap))
|
| 692 |
+
|
| 693 |
+
num_inouts = len(args) - num_reductions
|
| 694 |
+
# maximum class number for array shapes
|
| 695 |
+
classes = [get_shape_classes(var, typemap=typemap) if var not in races else (-1,) for var in args[1:]]
|
| 696 |
+
class_set = set()
|
| 697 |
+
for _class in classes:
|
| 698 |
+
if _class:
|
| 699 |
+
for i in _class:
|
| 700 |
+
class_set.add(i)
|
| 701 |
+
max_class = max(class_set) + 1 if class_set else 0
|
| 702 |
+
classes.insert(0, (max_class,)) # force set the class of 'sched' argument
|
| 703 |
+
class_set.add(max_class)
|
| 704 |
+
thread_num_class = max_class + 1
|
| 705 |
+
class_set.add(thread_num_class)
|
| 706 |
+
class_map = {}
|
| 707 |
+
# TODO: use prefix + class number instead of single char
|
| 708 |
+
alphabet = ord('a')
|
| 709 |
+
for n in class_set:
|
| 710 |
+
if n >= 0:
|
| 711 |
+
class_map[n] = chr(alphabet)
|
| 712 |
+
alphabet += 1
|
| 713 |
+
threadcount_ordinal = chr(alphabet)
|
| 714 |
+
|
| 715 |
+
alpha_dict = {'latest_alpha' : alphabet}
|
| 716 |
+
|
| 717 |
+
def bump_alpha(c, class_map):
|
| 718 |
+
if c >= 0:
|
| 719 |
+
return class_map[c]
|
| 720 |
+
else:
|
| 721 |
+
alpha_dict['latest_alpha'] += 1
|
| 722 |
+
return chr(alpha_dict['latest_alpha'])
|
| 723 |
+
|
| 724 |
+
gu_sin = []
|
| 725 |
+
gu_sout = []
|
| 726 |
+
count = 0
|
| 727 |
+
syms_sin = ()
|
| 728 |
+
if config.DEBUG_ARRAY_OPT:
|
| 729 |
+
print("args", args)
|
| 730 |
+
print("classes", classes)
|
| 731 |
+
print("threadcount_ordinal", threadcount_ordinal)
|
| 732 |
+
for cls, arg in zip(classes, args):
|
| 733 |
+
count = count + 1
|
| 734 |
+
if cls:
|
| 735 |
+
dim_syms = tuple(bump_alpha(c, class_map) for c in cls)
|
| 736 |
+
else:
|
| 737 |
+
dim_syms = ()
|
| 738 |
+
if (count > num_inouts):
|
| 739 |
+
# Add the threadcount_ordinal to represent the thread count
|
| 740 |
+
# to the start of the reduction array.
|
| 741 |
+
gu_sin.append(tuple([threadcount_ordinal] + list(dim_syms[1:])))
|
| 742 |
+
else:
|
| 743 |
+
gu_sin.append(dim_syms)
|
| 744 |
+
syms_sin += dim_syms
|
| 745 |
+
return (gu_sin, gu_sout)
|
| 746 |
+
|
| 747 |
+
def _print_block(block):
|
| 748 |
+
for i, inst in enumerate(block.body):
|
| 749 |
+
print(" ", i, " ", inst)
|
| 750 |
+
|
| 751 |
+
def _print_body(body_dict):
|
| 752 |
+
'''Pretty-print a set of IR blocks.
|
| 753 |
+
'''
|
| 754 |
+
topo_order = wrap_find_topo(body_dict)
|
| 755 |
+
for label in topo_order:
|
| 756 |
+
block = body_dict[label]
|
| 757 |
+
print("label: ", label)
|
| 758 |
+
_print_block(block)
|
| 759 |
+
|
| 760 |
+
|
| 761 |
+
def wrap_loop_body(loop_body):
|
| 762 |
+
blocks = loop_body.copy() # shallow copy is enough
|
| 763 |
+
first_label = min(blocks.keys())
|
| 764 |
+
last_label = max(blocks.keys())
|
| 765 |
+
loc = blocks[last_label].loc
|
| 766 |
+
blocks[last_label].body.append(ir.Jump(first_label, loc))
|
| 767 |
+
return blocks
|
| 768 |
+
|
| 769 |
+
def unwrap_loop_body(loop_body):
|
| 770 |
+
last_label = max(loop_body.keys())
|
| 771 |
+
loop_body[last_label].body = loop_body[last_label].body[:-1]
|
| 772 |
+
|
| 773 |
+
def add_to_def_once_sets(a_def, def_once, def_more):
|
| 774 |
+
'''If the variable is already defined more than once, do nothing.
|
| 775 |
+
Else if defined exactly once previously then transition this
|
| 776 |
+
variable to the defined more than once set (remove it from
|
| 777 |
+
def_once set and add to def_more set).
|
| 778 |
+
Else this must be the first time we've seen this variable defined
|
| 779 |
+
so add to def_once set.
|
| 780 |
+
'''
|
| 781 |
+
if a_def in def_more:
|
| 782 |
+
pass
|
| 783 |
+
elif a_def in def_once:
|
| 784 |
+
def_more.add(a_def)
|
| 785 |
+
def_once.remove(a_def)
|
| 786 |
+
else:
|
| 787 |
+
def_once.add(a_def)
|
| 788 |
+
|
| 789 |
+
def compute_def_once_block(block, def_once, def_more, getattr_taken, typemap, module_assigns):
|
| 790 |
+
'''Effect changes to the set of variables defined once or more than once
|
| 791 |
+
for a single block.
|
| 792 |
+
block - the block to process
|
| 793 |
+
def_once - set of variable names known to be defined exactly once
|
| 794 |
+
def_more - set of variable names known to be defined more than once
|
| 795 |
+
getattr_taken - dict mapping variable name to tuple of object and attribute taken
|
| 796 |
+
module_assigns - dict mapping variable name to the Global that they came from
|
| 797 |
+
'''
|
| 798 |
+
# The only "defs" occur in assignments, so find such instructions.
|
| 799 |
+
assignments = block.find_insts(ir.Assign)
|
| 800 |
+
# For each assignment...
|
| 801 |
+
for one_assign in assignments:
|
| 802 |
+
# Get the LHS/target of the assignment.
|
| 803 |
+
a_def = one_assign.target.name
|
| 804 |
+
# Add variable to def sets.
|
| 805 |
+
add_to_def_once_sets(a_def, def_once, def_more)
|
| 806 |
+
|
| 807 |
+
rhs = one_assign.value
|
| 808 |
+
if isinstance(rhs, ir.Global):
|
| 809 |
+
# Remember assignments of the form "a = Global(...)"
|
| 810 |
+
# Is this a module?
|
| 811 |
+
if isinstance(rhs.value, pytypes.ModuleType):
|
| 812 |
+
module_assigns[a_def] = rhs.value.__name__
|
| 813 |
+
if isinstance(rhs, ir.Expr) and rhs.op == 'getattr' and rhs.value.name in def_once:
|
| 814 |
+
# Remember assignments of the form "a = b.c"
|
| 815 |
+
getattr_taken[a_def] = (rhs.value.name, rhs.attr)
|
| 816 |
+
if isinstance(rhs, ir.Expr) and rhs.op == 'call' and rhs.func.name in getattr_taken:
|
| 817 |
+
# If "a" is being called then lookup the getattr definition of "a"
|
| 818 |
+
# as above, getting the module variable "b" (base_obj)
|
| 819 |
+
# and the attribute "c" (base_attr).
|
| 820 |
+
base_obj, base_attr = getattr_taken[rhs.func.name]
|
| 821 |
+
if base_obj in module_assigns:
|
| 822 |
+
# If we know the definition of the module variable then get the module
|
| 823 |
+
# name from module_assigns.
|
| 824 |
+
base_mod_name = module_assigns[base_obj]
|
| 825 |
+
if not is_const_call(base_mod_name, base_attr):
|
| 826 |
+
# Calling a method on an object could modify the object and is thus
|
| 827 |
+
# like a def of that object. We call is_const_call to see if this module/attribute
|
| 828 |
+
# combination is known to not modify the module state. If we don't know that
|
| 829 |
+
# the combination is safe then we have to assume there could be a modification to
|
| 830 |
+
# the module and thus add the module variable as defined more than once.
|
| 831 |
+
add_to_def_once_sets(base_obj, def_once, def_more)
|
| 832 |
+
else:
|
| 833 |
+
# Assume the worst and say that base_obj could be modified by the call.
|
| 834 |
+
add_to_def_once_sets(base_obj, def_once, def_more)
|
| 835 |
+
if isinstance(rhs, ir.Expr) and rhs.op == 'call':
|
| 836 |
+
# If a mutable object is passed to a function, then it may be changed and
|
| 837 |
+
# therefore can't be hoisted.
|
| 838 |
+
# For each argument to the function...
|
| 839 |
+
for argvar in rhs.args:
|
| 840 |
+
# Get the argument's type.
|
| 841 |
+
if isinstance(argvar, ir.Var):
|
| 842 |
+
argvar = argvar.name
|
| 843 |
+
avtype = typemap[argvar]
|
| 844 |
+
# If that type doesn't have a mutable attribute or it does and it's set to
|
| 845 |
+
# not mutable then this usage is safe for hoisting.
|
| 846 |
+
if getattr(avtype, 'mutable', False):
|
| 847 |
+
# Here we have a mutable variable passed to a function so add this variable
|
| 848 |
+
# to the def lists.
|
| 849 |
+
add_to_def_once_sets(argvar, def_once, def_more)
|
| 850 |
+
|
| 851 |
+
def wrap_find_topo(loop_body):
|
| 852 |
+
blocks = wrap_loop_body(loop_body)
|
| 853 |
+
topo_order = find_topo_order(blocks)
|
| 854 |
+
unwrap_loop_body(loop_body)
|
| 855 |
+
return topo_order
|
| 856 |
+
|
| 857 |
+
def compute_def_once_internal(loop_body, def_once, def_more, getattr_taken, typemap, module_assigns):
|
| 858 |
+
'''Compute the set of variables defined exactly once in the given set of blocks
|
| 859 |
+
and use the given sets for storing which variables are defined once, more than
|
| 860 |
+
once and which have had a getattr call on them.
|
| 861 |
+
'''
|
| 862 |
+
# For each block in topological order...
|
| 863 |
+
topo_order = wrap_find_topo(loop_body)
|
| 864 |
+
for label in topo_order:
|
| 865 |
+
block = loop_body[label]
|
| 866 |
+
# Scan this block and effect changes to def_once, def_more, and getattr_taken
|
| 867 |
+
# based on the instructions in that block.
|
| 868 |
+
compute_def_once_block(block, def_once, def_more, getattr_taken, typemap, module_assigns)
|
| 869 |
+
# Have to recursively process parfors manually here.
|
| 870 |
+
for inst in block.body:
|
| 871 |
+
if isinstance(inst, parfor.Parfor):
|
| 872 |
+
# Recursively compute for the parfor's init block.
|
| 873 |
+
compute_def_once_block(inst.init_block, def_once, def_more, getattr_taken, typemap, module_assigns)
|
| 874 |
+
# Recursively compute for the parfor's loop body.
|
| 875 |
+
compute_def_once_internal(inst.loop_body, def_once, def_more, getattr_taken, typemap, module_assigns)
|
| 876 |
+
|
| 877 |
+
def compute_def_once(loop_body, typemap):
|
| 878 |
+
'''Compute the set of variables defined exactly once in the given set of blocks.
|
| 879 |
+
'''
|
| 880 |
+
def_once = set() # set to hold variables defined exactly once
|
| 881 |
+
def_more = set() # set to hold variables defined more than once
|
| 882 |
+
getattr_taken = {}
|
| 883 |
+
module_assigns = {}
|
| 884 |
+
compute_def_once_internal(loop_body, def_once, def_more, getattr_taken, typemap, module_assigns)
|
| 885 |
+
return def_once, def_more
|
| 886 |
+
|
| 887 |
+
def find_vars(var, varset):
|
| 888 |
+
assert isinstance(var, ir.Var)
|
| 889 |
+
varset.add(var.name)
|
| 890 |
+
return var
|
| 891 |
+
|
| 892 |
+
def _hoist_internal(inst, dep_on_param, call_table, hoisted, not_hoisted,
|
| 893 |
+
typemap, stored_arrays):
|
| 894 |
+
if inst.target.name in stored_arrays:
|
| 895 |
+
not_hoisted.append((inst, "stored array"))
|
| 896 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 897 |
+
print("Instruction", inst, "could not be hoisted because the created array is stored.")
|
| 898 |
+
return False
|
| 899 |
+
|
| 900 |
+
target_type = typemap[inst.target.name]
|
| 901 |
+
|
| 902 |
+
uses = set()
|
| 903 |
+
# Get vars used by this statement.
|
| 904 |
+
visit_vars_inner(inst.value, find_vars, uses)
|
| 905 |
+
# Filter out input parameters from the set of variable usages.
|
| 906 |
+
unhoistable = {assgn.target.name for assgn, _ in not_hoisted}
|
| 907 |
+
use_unhoist = uses & unhoistable
|
| 908 |
+
diff = uses.difference(dep_on_param)
|
| 909 |
+
diff |= use_unhoist
|
| 910 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 911 |
+
print("_hoist_internal:", inst, "uses:", uses, "diff:", diff)
|
| 912 |
+
if len(diff) == 0 and is_pure(inst.value, None, call_table):
|
| 913 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 914 |
+
print("Will hoist instruction", inst, target_type)
|
| 915 |
+
hoisted.append(inst)
|
| 916 |
+
if not isinstance(target_type, types.npytypes.Array):
|
| 917 |
+
dep_on_param += [inst.target.name]
|
| 918 |
+
return True
|
| 919 |
+
else:
|
| 920 |
+
if len(diff) > 0:
|
| 921 |
+
not_hoisted.append((inst, "dependency"))
|
| 922 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 923 |
+
print("Instruction", inst, "could not be hoisted because of a dependency.")
|
| 924 |
+
else:
|
| 925 |
+
not_hoisted.append((inst, "not pure"))
|
| 926 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 927 |
+
print("Instruction", inst, "could not be hoisted because it isn't pure.")
|
| 928 |
+
return False
|
| 929 |
+
|
| 930 |
+
def find_setitems_block(setitems, itemsset, block, typemap):
|
| 931 |
+
for inst in block.body:
|
| 932 |
+
if isinstance(inst, (ir.StaticSetItem, ir.SetItem)):
|
| 933 |
+
setitems.add(inst.target.name)
|
| 934 |
+
# If we store a non-mutable object into an array then that is safe to hoist.
|
| 935 |
+
# If the stored object is mutable and you hoist then multiple entries in the
|
| 936 |
+
# outer array could reference the same object and changing one index would then
|
| 937 |
+
# change other indices.
|
| 938 |
+
if getattr(typemap[inst.value.name], "mutable", False):
|
| 939 |
+
itemsset.add(inst.value.name)
|
| 940 |
+
elif isinstance(inst, parfor.Parfor):
|
| 941 |
+
find_setitems_block(setitems, itemsset, inst.init_block, typemap)
|
| 942 |
+
find_setitems_body(setitems, itemsset, inst.loop_body, typemap)
|
| 943 |
+
elif isinstance(inst, ir.Assign):
|
| 944 |
+
# If something of mutable type is given to a build_tuple or
|
| 945 |
+
# used in a call then consider it unanalyzable and so
|
| 946 |
+
# unavailable for hoisting.
|
| 947 |
+
rhs = inst.value
|
| 948 |
+
def add_to_itemset(item):
|
| 949 |
+
assert isinstance(item, ir.Var), rhs
|
| 950 |
+
if getattr(typemap[item.name], "mutable", False):
|
| 951 |
+
itemsset.add(item.name)
|
| 952 |
+
|
| 953 |
+
if isinstance(rhs, ir.Expr):
|
| 954 |
+
if rhs.op in ["build_tuple", "build_list", "build_set"]:
|
| 955 |
+
for item in rhs.items:
|
| 956 |
+
add_to_itemset(item)
|
| 957 |
+
elif rhs.op == "build_map":
|
| 958 |
+
for pair in rhs.items:
|
| 959 |
+
for item in pair:
|
| 960 |
+
add_to_itemset(item)
|
| 961 |
+
elif rhs.op == "call":
|
| 962 |
+
for item in list(rhs.args) + [x[1] for x in rhs.kws]:
|
| 963 |
+
add_to_itemset(item)
|
| 964 |
+
|
| 965 |
+
def find_setitems_body(setitems, itemsset, loop_body, typemap):
|
| 966 |
+
"""
|
| 967 |
+
Find the arrays that are written into (goes into setitems) and the
|
| 968 |
+
mutable objects (mostly arrays) that are written into other arrays
|
| 969 |
+
(goes into itemsset).
|
| 970 |
+
"""
|
| 971 |
+
for label, block in loop_body.items():
|
| 972 |
+
find_setitems_block(setitems, itemsset, block, typemap)
|
| 973 |
+
|
| 974 |
+
def empty_container_allocator_hoist(inst, dep_on_param, call_table, hoisted,
|
| 975 |
+
not_hoisted, typemap, stored_arrays):
|
| 976 |
+
if (isinstance(inst, ir.Assign) and
|
| 977 |
+
isinstance(inst.value, ir.Expr) and
|
| 978 |
+
inst.value.op == 'call' and
|
| 979 |
+
inst.value.func.name in call_table):
|
| 980 |
+
call_list = call_table[inst.value.func.name]
|
| 981 |
+
if call_list == ['empty', np]:
|
| 982 |
+
return _hoist_internal(inst, dep_on_param, call_table, hoisted,
|
| 983 |
+
not_hoisted, typemap, stored_arrays)
|
| 984 |
+
return False
|
| 985 |
+
|
| 986 |
+
def hoist(parfor_params, loop_body, typemap, wrapped_blocks):
|
| 987 |
+
dep_on_param = copy.copy(parfor_params)
|
| 988 |
+
hoisted = []
|
| 989 |
+
not_hoisted = []
|
| 990 |
+
|
| 991 |
+
# Compute the set of variable defined exactly once in the loop body.
|
| 992 |
+
def_once, def_more = compute_def_once(loop_body, typemap)
|
| 993 |
+
(call_table, reverse_call_table) = get_call_table(wrapped_blocks)
|
| 994 |
+
|
| 995 |
+
setitems = set()
|
| 996 |
+
itemsset = set()
|
| 997 |
+
find_setitems_body(setitems, itemsset, loop_body, typemap)
|
| 998 |
+
dep_on_param = list(set(dep_on_param).difference(setitems))
|
| 999 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 1000 |
+
print("hoist - def_once:", def_once, "setitems:", setitems, "itemsset:", itemsset, "dep_on_param:", dep_on_param, "parfor_params:", parfor_params)
|
| 1001 |
+
for si in setitems:
|
| 1002 |
+
add_to_def_once_sets(si, def_once, def_more)
|
| 1003 |
+
|
| 1004 |
+
for label, block in loop_body.items():
|
| 1005 |
+
new_block = []
|
| 1006 |
+
for inst in block.body:
|
| 1007 |
+
if empty_container_allocator_hoist(inst, dep_on_param, call_table,
|
| 1008 |
+
hoisted, not_hoisted, typemap, itemsset):
|
| 1009 |
+
continue
|
| 1010 |
+
elif isinstance(inst, ir.Assign) and inst.target.name in def_once:
|
| 1011 |
+
if _hoist_internal(inst, dep_on_param, call_table,
|
| 1012 |
+
hoisted, not_hoisted, typemap, itemsset):
|
| 1013 |
+
# don't add this instruction to the block since it is
|
| 1014 |
+
# hoisted
|
| 1015 |
+
continue
|
| 1016 |
+
elif isinstance(inst, parfor.Parfor):
|
| 1017 |
+
new_init_block = []
|
| 1018 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 1019 |
+
print("parfor")
|
| 1020 |
+
inst.dump()
|
| 1021 |
+
for ib_inst in inst.init_block.body:
|
| 1022 |
+
if empty_container_allocator_hoist(ib_inst, dep_on_param,
|
| 1023 |
+
call_table, hoisted, not_hoisted, typemap, itemsset):
|
| 1024 |
+
continue
|
| 1025 |
+
elif (isinstance(ib_inst, ir.Assign) and
|
| 1026 |
+
ib_inst.target.name in def_once):
|
| 1027 |
+
if _hoist_internal(ib_inst, dep_on_param, call_table,
|
| 1028 |
+
hoisted, not_hoisted, typemap,
|
| 1029 |
+
itemsset):
|
| 1030 |
+
# don't add this instruction to the block since it is hoisted
|
| 1031 |
+
continue
|
| 1032 |
+
new_init_block.append(ib_inst)
|
| 1033 |
+
inst.init_block.body = new_init_block
|
| 1034 |
+
|
| 1035 |
+
new_block.append(inst)
|
| 1036 |
+
block.body = new_block
|
| 1037 |
+
return hoisted, not_hoisted
|
| 1038 |
+
|
| 1039 |
+
def redtyp_is_scalar(redtype):
|
| 1040 |
+
return not isinstance(redtype, types.npytypes.Array)
|
| 1041 |
+
|
| 1042 |
+
def redtyp_to_redarraytype(redtyp):
|
| 1043 |
+
"""Go from a reducation variable type to a reduction array type used to hold
|
| 1044 |
+
per-worker results.
|
| 1045 |
+
"""
|
| 1046 |
+
redarrdim = 1
|
| 1047 |
+
# If the reduction type is an array then allocate reduction array with ndim+1 dimensions.
|
| 1048 |
+
if isinstance(redtyp, types.npytypes.Array):
|
| 1049 |
+
redarrdim += redtyp.ndim
|
| 1050 |
+
# We don't create array of array but multi-dimensional reduction array with same dtype.
|
| 1051 |
+
redtyp = redtyp.dtype
|
| 1052 |
+
return types.npytypes.Array(redtyp, redarrdim, "C")
|
| 1053 |
+
|
| 1054 |
+
def redarraytype_to_sig(redarraytyp):
|
| 1055 |
+
"""Given a reduction array type, find the type of the reduction argument to the gufunc.
|
| 1056 |
+
"""
|
| 1057 |
+
assert isinstance(redarraytyp, types.npytypes.Array)
|
| 1058 |
+
return types.npytypes.Array(redarraytyp.dtype, redarraytyp.ndim, redarraytyp.layout)
|
| 1059 |
+
|
| 1060 |
+
def legalize_names_with_typemap(names, typemap):
|
| 1061 |
+
""" We use ir_utils.legalize_names to replace internal IR variable names
|
| 1062 |
+
containing illegal characters (e.g. period) with a legal character
|
| 1063 |
+
(underscore) so as to create legal variable names.
|
| 1064 |
+
The original variable names are in the typemap so we also
|
| 1065 |
+
need to add the legalized name to the typemap as well.
|
| 1066 |
+
"""
|
| 1067 |
+
outdict = legalize_names(names)
|
| 1068 |
+
# For each pair in the dict of legalized names...
|
| 1069 |
+
for x, y in outdict.items():
|
| 1070 |
+
# If the name had some legalization change to it...
|
| 1071 |
+
if x != y:
|
| 1072 |
+
# Set the type of the new name the same as the type of the old name.
|
| 1073 |
+
typemap[y] = typemap[x]
|
| 1074 |
+
return outdict
|
| 1075 |
+
|
| 1076 |
+
def to_scalar_from_0d(x):
|
| 1077 |
+
if isinstance(x, types.ArrayCompatible):
|
| 1078 |
+
if x.ndim == 0:
|
| 1079 |
+
return x.dtype
|
| 1080 |
+
return x
|
| 1081 |
+
|
| 1082 |
+
def _create_gufunc_for_parfor_body(
|
| 1083 |
+
lowerer,
|
| 1084 |
+
parfor,
|
| 1085 |
+
typemap,
|
| 1086 |
+
typingctx,
|
| 1087 |
+
targetctx,
|
| 1088 |
+
flags,
|
| 1089 |
+
locals,
|
| 1090 |
+
has_aliases,
|
| 1091 |
+
index_var_typ,
|
| 1092 |
+
races):
|
| 1093 |
+
'''
|
| 1094 |
+
Takes a parfor and creates a gufunc function for its body.
|
| 1095 |
+
There are two parts to this function.
|
| 1096 |
+
1) Code to iterate across the iteration space as defined by the schedule.
|
| 1097 |
+
2) The parfor body that does the work for a single point in the iteration space.
|
| 1098 |
+
Part 1 is created as Python text for simplicity with a sentinel assignment to mark the point
|
| 1099 |
+
in the IR where the parfor body should be added.
|
| 1100 |
+
This Python text is 'exec'ed into existence and its IR retrieved with run_frontend.
|
| 1101 |
+
The IR is scanned for the sentinel assignment where that basic block is split and the IR
|
| 1102 |
+
for the parfor body inserted.
|
| 1103 |
+
'''
|
| 1104 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 1105 |
+
print("starting _create_gufunc_for_parfor_body")
|
| 1106 |
+
|
| 1107 |
+
loc = parfor.init_block.loc
|
| 1108 |
+
|
| 1109 |
+
# The parfor body and the main function body share ir.Var nodes.
|
| 1110 |
+
# We have to do some replacements of Var names in the parfor body to make them
|
| 1111 |
+
# legal parameter names. If we don't copy then the Vars in the main function also
|
| 1112 |
+
# would incorrectly change their name.
|
| 1113 |
+
loop_body = copy.copy(parfor.loop_body)
|
| 1114 |
+
remove_dels(loop_body)
|
| 1115 |
+
|
| 1116 |
+
parfor_dim = len(parfor.loop_nests)
|
| 1117 |
+
loop_indices = [l.index_variable.name for l in parfor.loop_nests]
|
| 1118 |
+
|
| 1119 |
+
# Get all the parfor params.
|
| 1120 |
+
parfor_params = parfor.params
|
| 1121 |
+
# Get just the outputs of the parfor.
|
| 1122 |
+
parfor_outputs = numba.parfors.parfor.get_parfor_outputs(parfor, parfor_params)
|
| 1123 |
+
# Get all parfor reduction vars, and operators.
|
| 1124 |
+
typemap = lowerer.fndesc.typemap
|
| 1125 |
+
parfor_redvars, parfor_reddict = numba.parfors.parfor.get_parfor_reductions(
|
| 1126 |
+
lowerer.func_ir, parfor, parfor_params, lowerer.fndesc.calltypes)
|
| 1127 |
+
# Compute just the parfor inputs as a set difference.
|
| 1128 |
+
parfor_inputs = sorted(
|
| 1129 |
+
list(
|
| 1130 |
+
set(parfor_params) -
|
| 1131 |
+
set(parfor_outputs) -
|
| 1132 |
+
set(parfor_redvars)))
|
| 1133 |
+
|
| 1134 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 1135 |
+
print("parfor_params = ", parfor_params, " ", type(parfor_params))
|
| 1136 |
+
print("parfor_outputs = ", parfor_outputs, " ", type(parfor_outputs))
|
| 1137 |
+
print("parfor_inputs = ", parfor_inputs, " ", type(parfor_inputs))
|
| 1138 |
+
print("parfor_redvars = ", parfor_redvars, " ", type(parfor_redvars))
|
| 1139 |
+
|
| 1140 |
+
# -------------------------------------------------------------------------
|
| 1141 |
+
# Convert tuples to individual parameters.
|
| 1142 |
+
tuple_expanded_parfor_inputs = []
|
| 1143 |
+
tuple_var_to_expanded_names = {}
|
| 1144 |
+
expanded_name_to_tuple_var = {}
|
| 1145 |
+
next_expanded_tuple_var = 0
|
| 1146 |
+
parfor_tuple_params = []
|
| 1147 |
+
# For each input to the parfor.
|
| 1148 |
+
for pi in parfor_inputs:
|
| 1149 |
+
# Get the type of the input.
|
| 1150 |
+
pi_type = typemap[pi]
|
| 1151 |
+
# If it is a UniTuple or Tuple we will do the conversion.
|
| 1152 |
+
if isinstance(pi_type, types.UniTuple) or isinstance(pi_type, types.NamedUniTuple):
|
| 1153 |
+
# Get the size and dtype of the tuple.
|
| 1154 |
+
tuple_count = pi_type.count
|
| 1155 |
+
tuple_dtype = pi_type.dtype
|
| 1156 |
+
# Only do tuples up to config.PARFOR_MAX_TUPLE_SIZE length.
|
| 1157 |
+
assert(tuple_count <= config.PARFOR_MAX_TUPLE_SIZE)
|
| 1158 |
+
this_var_expansion = []
|
| 1159 |
+
for i in range(tuple_count):
|
| 1160 |
+
# Generate a new name for the individual part of the tuple var.
|
| 1161 |
+
expanded_name = "expanded_tuple_var_" + str(next_expanded_tuple_var)
|
| 1162 |
+
# Add that name to the new list of inputs to the gufunc.
|
| 1163 |
+
tuple_expanded_parfor_inputs.append(expanded_name)
|
| 1164 |
+
this_var_expansion.append(expanded_name)
|
| 1165 |
+
# Remember a mapping from new param name to original tuple
|
| 1166 |
+
# var and the index within the tuple.
|
| 1167 |
+
expanded_name_to_tuple_var[expanded_name] = (pi, i)
|
| 1168 |
+
next_expanded_tuple_var += 1
|
| 1169 |
+
# Set the type of the new parameter.
|
| 1170 |
+
typemap[expanded_name] = tuple_dtype
|
| 1171 |
+
# Remember a mapping from the original tuple var to the
|
| 1172 |
+
# individual parts.
|
| 1173 |
+
tuple_var_to_expanded_names[pi] = this_var_expansion
|
| 1174 |
+
parfor_tuple_params.append(pi)
|
| 1175 |
+
elif isinstance(pi_type, types.Tuple) or isinstance(pi_type, types.NamedTuple):
|
| 1176 |
+
# This is the same as above for UniTuple except that each part of
|
| 1177 |
+
# the tuple can have a different type and we fetch that type with
|
| 1178 |
+
# pi_type.types[offset].
|
| 1179 |
+
tuple_count = pi_type.count
|
| 1180 |
+
tuple_types = pi_type.types
|
| 1181 |
+
# Only do tuples up to config.PARFOR_MAX_TUPLE_SIZE length.
|
| 1182 |
+
assert(tuple_count <= config.PARFOR_MAX_TUPLE_SIZE)
|
| 1183 |
+
this_var_expansion = []
|
| 1184 |
+
for i in range(tuple_count):
|
| 1185 |
+
expanded_name = "expanded_tuple_var_" + str(next_expanded_tuple_var)
|
| 1186 |
+
tuple_expanded_parfor_inputs.append(expanded_name)
|
| 1187 |
+
this_var_expansion.append(expanded_name)
|
| 1188 |
+
expanded_name_to_tuple_var[expanded_name] = (pi, i)
|
| 1189 |
+
next_expanded_tuple_var += 1
|
| 1190 |
+
typemap[expanded_name] = tuple_types[i]
|
| 1191 |
+
tuple_var_to_expanded_names[pi] = this_var_expansion
|
| 1192 |
+
parfor_tuple_params.append(pi)
|
| 1193 |
+
else:
|
| 1194 |
+
tuple_expanded_parfor_inputs.append(pi)
|
| 1195 |
+
parfor_inputs = tuple_expanded_parfor_inputs
|
| 1196 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 1197 |
+
print("parfor_inputs post tuple handling = ", parfor_inputs, " ", type(parfor_inputs))
|
| 1198 |
+
# -------------------------------------------------------------------------
|
| 1199 |
+
|
| 1200 |
+
races = races.difference(set(parfor_redvars))
|
| 1201 |
+
for race in races:
|
| 1202 |
+
msg = ("Variable %s used in parallel loop may be written "
|
| 1203 |
+
"to simultaneously by multiple workers and may result "
|
| 1204 |
+
"in non-deterministic or unintended results." % race)
|
| 1205 |
+
warnings.warn(NumbaParallelSafetyWarning(msg, loc))
|
| 1206 |
+
replace_var_with_array(races, loop_body, typemap, lowerer.fndesc.calltypes)
|
| 1207 |
+
|
| 1208 |
+
# Reduction variables are represented as arrays, so they go under
|
| 1209 |
+
# different names.
|
| 1210 |
+
parfor_redarrs = []
|
| 1211 |
+
parfor_red_arg_types = []
|
| 1212 |
+
for var in parfor_redvars:
|
| 1213 |
+
arr = var + "_arr"
|
| 1214 |
+
parfor_redarrs.append(arr)
|
| 1215 |
+
redarraytype = redtyp_to_redarraytype(typemap[var])
|
| 1216 |
+
parfor_red_arg_types.append(redarraytype)
|
| 1217 |
+
redarrsig = redarraytype_to_sig(redarraytype)
|
| 1218 |
+
if arr in typemap:
|
| 1219 |
+
assert(typemap[arr] == redarrsig)
|
| 1220 |
+
else:
|
| 1221 |
+
typemap[arr] = redarrsig
|
| 1222 |
+
|
| 1223 |
+
# Reorder all the params so that inputs go first then outputs.
|
| 1224 |
+
parfor_params = parfor_inputs + parfor_outputs + parfor_redarrs
|
| 1225 |
+
|
| 1226 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 1227 |
+
print("parfor_params = ", parfor_params, " ", type(parfor_params))
|
| 1228 |
+
print("loop_indices = ", loop_indices, " ", type(loop_indices))
|
| 1229 |
+
print("loop_body = ", loop_body, " ", type(loop_body))
|
| 1230 |
+
_print_body(loop_body)
|
| 1231 |
+
|
| 1232 |
+
# Some Var are not legal parameter names so create a dict of potentially illegal
|
| 1233 |
+
# param name to guaranteed legal name.
|
| 1234 |
+
param_dict = legalize_names_with_typemap(parfor_params + parfor_redvars + parfor_tuple_params, typemap)
|
| 1235 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 1236 |
+
print(
|
| 1237 |
+
"param_dict = ",
|
| 1238 |
+
sorted(
|
| 1239 |
+
param_dict.items()),
|
| 1240 |
+
" ",
|
| 1241 |
+
type(param_dict))
|
| 1242 |
+
|
| 1243 |
+
# Some loop_indices are not legal parameter names so create a dict of potentially illegal
|
| 1244 |
+
# loop index to guaranteed legal name.
|
| 1245 |
+
ind_dict = legalize_names_with_typemap(loop_indices, typemap)
|
| 1246 |
+
# Compute a new list of legal loop index names.
|
| 1247 |
+
legal_loop_indices = [ind_dict[v] for v in loop_indices]
|
| 1248 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 1249 |
+
print("ind_dict = ", sorted(ind_dict.items()), " ", type(ind_dict))
|
| 1250 |
+
print(
|
| 1251 |
+
"legal_loop_indices = ",
|
| 1252 |
+
legal_loop_indices,
|
| 1253 |
+
" ",
|
| 1254 |
+
type(legal_loop_indices))
|
| 1255 |
+
for pd in parfor_params:
|
| 1256 |
+
print("pd = ", pd)
|
| 1257 |
+
print("pd type = ", typemap[pd], " ", type(typemap[pd]))
|
| 1258 |
+
|
| 1259 |
+
# Get the types of each parameter.
|
| 1260 |
+
param_types = [to_scalar_from_0d(typemap[v]) for v in parfor_params]
|
| 1261 |
+
# Calculate types of args passed to gufunc.
|
| 1262 |
+
func_arg_types = [typemap[v] for v in (parfor_inputs + parfor_outputs)] + parfor_red_arg_types
|
| 1263 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 1264 |
+
print("new param_types:", param_types)
|
| 1265 |
+
print("new func_arg_types:", func_arg_types)
|
| 1266 |
+
|
| 1267 |
+
# Replace illegal parameter names in the loop body with legal ones.
|
| 1268 |
+
replace_var_names(loop_body, param_dict)
|
| 1269 |
+
# remember the name before legalizing as the actual arguments
|
| 1270 |
+
parfor_args = parfor_params
|
| 1271 |
+
# Change parfor_params to be legal names.
|
| 1272 |
+
parfor_params = [param_dict[v] for v in parfor_params]
|
| 1273 |
+
parfor_params_orig = parfor_params
|
| 1274 |
+
|
| 1275 |
+
parfor_params = []
|
| 1276 |
+
ascontig = False
|
| 1277 |
+
for pindex in range(len(parfor_params_orig)):
|
| 1278 |
+
if (ascontig and
|
| 1279 |
+
pindex < len(parfor_inputs) and
|
| 1280 |
+
isinstance(param_types[pindex], types.npytypes.Array)):
|
| 1281 |
+
parfor_params.append(parfor_params_orig[pindex]+"param")
|
| 1282 |
+
else:
|
| 1283 |
+
parfor_params.append(parfor_params_orig[pindex])
|
| 1284 |
+
|
| 1285 |
+
# Change parfor body to replace illegal loop index vars with legal ones.
|
| 1286 |
+
replace_var_names(loop_body, ind_dict)
|
| 1287 |
+
loop_body_var_table = get_name_var_table(loop_body)
|
| 1288 |
+
sentinel_name = get_unused_var_name("__sentinel__", loop_body_var_table)
|
| 1289 |
+
|
| 1290 |
+
if config.DEBUG_ARRAY_OPT >= 1:
|
| 1291 |
+
print(
|
| 1292 |
+
"legal parfor_params = ",
|
| 1293 |
+
parfor_params,
|
| 1294 |
+
" ",
|
| 1295 |
+
type(parfor_params))
|
| 1296 |
+
|
| 1297 |
+
# Determine the unique names of the scheduling and gufunc functions.
|
| 1298 |
+
# sched_func_name = "__numba_parfor_sched_%s" % (hex(hash(parfor)).replace("-", "_"))
|
| 1299 |
+
gufunc_name = "__numba_parfor_gufunc_%s" % (
|
| 1300 |
+
hex(hash(parfor)).replace("-", "_"))
|
| 1301 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1302 |
+
# print("sched_func_name ", type(sched_func_name), " ", sched_func_name)
|
| 1303 |
+
print("gufunc_name ", type(gufunc_name), " ", gufunc_name)
|
| 1304 |
+
|
| 1305 |
+
gufunc_txt = ""
|
| 1306 |
+
|
| 1307 |
+
# Create the gufunc function.
|
| 1308 |
+
gufunc_txt += "def " + gufunc_name + \
|
| 1309 |
+
"(sched, " + (", ".join(parfor_params)) + "):\n"
|
| 1310 |
+
|
| 1311 |
+
globls = {"np": np, "numba": numba}
|
| 1312 |
+
|
| 1313 |
+
# First thing in the gufunc, we reconstruct tuples from their
|
| 1314 |
+
# individual parts, e.g., orig_tup_name = (part1, part2,).
|
| 1315 |
+
# The rest of the code of the function will use the original tuple name.
|
| 1316 |
+
for tup_var, exp_names in tuple_var_to_expanded_names.items():
|
| 1317 |
+
tup_type = typemap[tup_var]
|
| 1318 |
+
gufunc_txt += " " + param_dict[tup_var]
|
| 1319 |
+
# Determine if the tuple is a named tuple.
|
| 1320 |
+
if (isinstance(tup_type, types.NamedTuple) or
|
| 1321 |
+
isinstance(tup_type, types.NamedUniTuple)):
|
| 1322 |
+
named_tup = True
|
| 1323 |
+
else:
|
| 1324 |
+
named_tup = False
|
| 1325 |
+
|
| 1326 |
+
if named_tup:
|
| 1327 |
+
# It is a named tuple so try to find the global that defines the
|
| 1328 |
+
# named tuple.
|
| 1329 |
+
func_def = guard(get_definition, lowerer.func_ir, tup_var)
|
| 1330 |
+
named_tuple_def = None
|
| 1331 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1332 |
+
print("func_def:", func_def, type(func_def))
|
| 1333 |
+
if func_def is not None:
|
| 1334 |
+
if (isinstance(func_def, ir.Expr) and
|
| 1335 |
+
func_def.op == 'call'):
|
| 1336 |
+
named_tuple_def = guard(get_definition, lowerer.func_ir, func_def.func)
|
| 1337 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1338 |
+
print("named_tuple_def:", named_tuple_def, type(named_tuple_def))
|
| 1339 |
+
elif isinstance(func_def, ir.Arg):
|
| 1340 |
+
named_tuple_def = typemap[func_def.name]
|
| 1341 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1342 |
+
print("named_tuple_def:", named_tuple_def,
|
| 1343 |
+
type(named_tuple_def), named_tuple_def.name)
|
| 1344 |
+
if named_tuple_def is not None:
|
| 1345 |
+
if (isinstance(named_tuple_def, ir.Global) or
|
| 1346 |
+
isinstance(named_tuple_def, ir.FreeVar)):
|
| 1347 |
+
gval = named_tuple_def.value
|
| 1348 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1349 |
+
print("gval:", gval, type(gval))
|
| 1350 |
+
globls[named_tuple_def.name] = gval
|
| 1351 |
+
elif isinstance(named_tuple_def, types.containers.BaseNamedTuple):
|
| 1352 |
+
named_tuple_name = named_tuple_def.name.split('(')[0]
|
| 1353 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1354 |
+
print("name:", named_tuple_name,
|
| 1355 |
+
named_tuple_def.instance_class,
|
| 1356 |
+
type(named_tuple_def.instance_class))
|
| 1357 |
+
globls[named_tuple_name] = named_tuple_def.instance_class
|
| 1358 |
+
else:
|
| 1359 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1360 |
+
print("Didn't find definition of namedtuple for globls.")
|
| 1361 |
+
raise CompilerError("Could not find definition of " + str(tup_var),
|
| 1362 |
+
tup_var.loc)
|
| 1363 |
+
gufunc_txt += " = " + tup_type.instance_class.__name__ + "("
|
| 1364 |
+
for name, field_name in zip(exp_names, tup_type.fields):
|
| 1365 |
+
gufunc_txt += field_name + "=" + param_dict[name] + ","
|
| 1366 |
+
else:
|
| 1367 |
+
# Just a regular tuple so use (part0, part1, ...)
|
| 1368 |
+
gufunc_txt += " = (" + ", ".join([param_dict[x] for x in exp_names])
|
| 1369 |
+
if len(exp_names) == 1:
|
| 1370 |
+
# Add comma for tuples with singular values. We can't unilaterally
|
| 1371 |
+
# add a comma always because (,) isn't valid.
|
| 1372 |
+
gufunc_txt += ","
|
| 1373 |
+
|
| 1374 |
+
gufunc_txt += ")\n"
|
| 1375 |
+
|
| 1376 |
+
for pindex in range(len(parfor_inputs)):
|
| 1377 |
+
if ascontig and isinstance(param_types[pindex], types.npytypes.Array):
|
| 1378 |
+
gufunc_txt += (" " + parfor_params_orig[pindex]
|
| 1379 |
+
+ " = np.ascontiguousarray(" + parfor_params[pindex] + ")\n")
|
| 1380 |
+
|
| 1381 |
+
gufunc_thread_id_var = "ParallelAcceleratorGufuncThreadId"
|
| 1382 |
+
|
| 1383 |
+
if len(parfor_redarrs) > 0:
|
| 1384 |
+
gufunc_txt += " " + gufunc_thread_id_var + " = "
|
| 1385 |
+
gufunc_txt += "numba.np.ufunc.parallel._iget_thread_id()\n"
|
| 1386 |
+
|
| 1387 |
+
# Add initialization of reduction variables
|
| 1388 |
+
for arr, var in zip(parfor_redarrs, parfor_redvars):
|
| 1389 |
+
gufunc_txt += " " + param_dict[var] + \
|
| 1390 |
+
"=" + param_dict[arr] + "[" + gufunc_thread_id_var + "]\n"
|
| 1391 |
+
if config.DEBUG_ARRAY_OPT_RUNTIME:
|
| 1392 |
+
gufunc_txt += " print(\"thread id =\", ParallelAcceleratorGufuncThreadId)\n"
|
| 1393 |
+
gufunc_txt += " print(\"initial reduction value\",ParallelAcceleratorGufuncThreadId," + param_dict[var] + "," + param_dict[var] + ".shape)\n"
|
| 1394 |
+
gufunc_txt += " print(\"reduction array\",ParallelAcceleratorGufuncThreadId," + param_dict[arr] + "," + param_dict[arr] + ".shape)\n"
|
| 1395 |
+
|
| 1396 |
+
# For each dimension of the parfor, create a for loop in the generated gufunc function.
|
| 1397 |
+
# Iterate across the proper values extracted from the schedule.
|
| 1398 |
+
# The form of the schedule is start_dim0, start_dim1, ..., start_dimN, end_dim0,
|
| 1399 |
+
# end_dim1, ..., end_dimN
|
| 1400 |
+
for eachdim in range(parfor_dim):
|
| 1401 |
+
for indent in range(eachdim + 1):
|
| 1402 |
+
gufunc_txt += " "
|
| 1403 |
+
sched_dim = eachdim
|
| 1404 |
+
gufunc_txt += ("for " +
|
| 1405 |
+
legal_loop_indices[eachdim] +
|
| 1406 |
+
" in range(sched[" +
|
| 1407 |
+
str(sched_dim) +
|
| 1408 |
+
"], sched[" +
|
| 1409 |
+
str(sched_dim +
|
| 1410 |
+
parfor_dim) +
|
| 1411 |
+
"] + np.uint8(1)):\n")
|
| 1412 |
+
|
| 1413 |
+
if config.DEBUG_ARRAY_OPT_RUNTIME:
|
| 1414 |
+
for indent in range(parfor_dim + 1):
|
| 1415 |
+
gufunc_txt += " "
|
| 1416 |
+
gufunc_txt += "print("
|
| 1417 |
+
for eachdim in range(parfor_dim):
|
| 1418 |
+
gufunc_txt += "\"" + legal_loop_indices[eachdim] + "\"," + legal_loop_indices[eachdim] + ","
|
| 1419 |
+
gufunc_txt += ")\n"
|
| 1420 |
+
|
| 1421 |
+
# Add the sentinel assignment so that we can find the loop body position
|
| 1422 |
+
# in the IR.
|
| 1423 |
+
for indent in range(parfor_dim + 1):
|
| 1424 |
+
gufunc_txt += " "
|
| 1425 |
+
gufunc_txt += sentinel_name + " = 0\n"
|
| 1426 |
+
# Add assignments of reduction variables (for returning the value)
|
| 1427 |
+
for arr, var in zip(parfor_redarrs, parfor_redvars):
|
| 1428 |
+
if config.DEBUG_ARRAY_OPT_RUNTIME:
|
| 1429 |
+
gufunc_txt += " print(\"final reduction value\",ParallelAcceleratorGufuncThreadId," + param_dict[var] + ")\n"
|
| 1430 |
+
gufunc_txt += " print(\"final reduction array\",ParallelAcceleratorGufuncThreadId," + param_dict[arr] + ")\n"
|
| 1431 |
+
# After the gufunc loops, copy the accumulated temp value back to reduction array.
|
| 1432 |
+
gufunc_txt += " " + param_dict[arr] + \
|
| 1433 |
+
"[" + gufunc_thread_id_var + "] = " + param_dict[var] + "\n"
|
| 1434 |
+
gufunc_txt += " return None\n"
|
| 1435 |
+
|
| 1436 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1437 |
+
print("gufunc_txt = ", type(gufunc_txt), "\n", gufunc_txt)
|
| 1438 |
+
print("globls:", globls, type(globls))
|
| 1439 |
+
# Force gufunc outline into existence.
|
| 1440 |
+
locls = {}
|
| 1441 |
+
exec(gufunc_txt, globls, locls)
|
| 1442 |
+
gufunc_func = locls[gufunc_name]
|
| 1443 |
+
|
| 1444 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1445 |
+
print("gufunc_func = ", type(gufunc_func), "\n", gufunc_func)
|
| 1446 |
+
# Get the IR for the gufunc outline.
|
| 1447 |
+
gufunc_ir = compiler.run_frontend(gufunc_func)
|
| 1448 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1449 |
+
print("gufunc_ir dump ", type(gufunc_ir))
|
| 1450 |
+
gufunc_ir.dump()
|
| 1451 |
+
print("loop_body dump ", type(loop_body))
|
| 1452 |
+
_print_body(loop_body)
|
| 1453 |
+
|
| 1454 |
+
# rename all variables in gufunc_ir afresh
|
| 1455 |
+
var_table = get_name_var_table(gufunc_ir.blocks)
|
| 1456 |
+
new_var_dict = {}
|
| 1457 |
+
reserved_names = [sentinel_name] + \
|
| 1458 |
+
list(param_dict.values()) + legal_loop_indices
|
| 1459 |
+
for name, var in var_table.items():
|
| 1460 |
+
if not (name in reserved_names):
|
| 1461 |
+
new_var_dict[name] = parfor.init_block.scope.redefine(name, loc).name
|
| 1462 |
+
replace_var_names(gufunc_ir.blocks, new_var_dict)
|
| 1463 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1464 |
+
print("gufunc_ir dump after renaming ")
|
| 1465 |
+
gufunc_ir.dump()
|
| 1466 |
+
gufunc_param_types = [types.npytypes.Array(
|
| 1467 |
+
index_var_typ, 1, "C")] + param_types
|
| 1468 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1469 |
+
print(
|
| 1470 |
+
"gufunc_param_types = ",
|
| 1471 |
+
type(gufunc_param_types),
|
| 1472 |
+
"\n",
|
| 1473 |
+
gufunc_param_types)
|
| 1474 |
+
|
| 1475 |
+
gufunc_stub_last_label = find_max_label(gufunc_ir.blocks) + 1
|
| 1476 |
+
|
| 1477 |
+
# Add gufunc stub last label to each parfor.loop_body label to prevent
|
| 1478 |
+
# label conflicts.
|
| 1479 |
+
loop_body = add_offset_to_labels(loop_body, gufunc_stub_last_label)
|
| 1480 |
+
# new label for splitting sentinel block
|
| 1481 |
+
new_label = find_max_label(loop_body) + 1
|
| 1482 |
+
|
| 1483 |
+
# If enabled, add a print statement after every assignment.
|
| 1484 |
+
if config.DEBUG_ARRAY_OPT_RUNTIME:
|
| 1485 |
+
for label, block in loop_body.items():
|
| 1486 |
+
new_block = block.copy()
|
| 1487 |
+
new_block.clear()
|
| 1488 |
+
loc = block.loc
|
| 1489 |
+
scope = block.scope
|
| 1490 |
+
for inst in block.body:
|
| 1491 |
+
new_block.append(inst)
|
| 1492 |
+
# Append print after assignment
|
| 1493 |
+
if isinstance(inst, ir.Assign):
|
| 1494 |
+
# Only apply to numbers
|
| 1495 |
+
if typemap[inst.target.name] not in types.number_domain:
|
| 1496 |
+
continue
|
| 1497 |
+
|
| 1498 |
+
# Make constant string
|
| 1499 |
+
strval = "{} =".format(inst.target.name)
|
| 1500 |
+
strconsttyp = types.StringLiteral(strval)
|
| 1501 |
+
|
| 1502 |
+
lhs = scope.redefine("str_const", loc)
|
| 1503 |
+
# lhs = ir.Var(scope, mk_unique_var("str_const"), loc)
|
| 1504 |
+
assign_lhs = ir.Assign(value=ir.Const(value=strval, loc=loc),
|
| 1505 |
+
target=lhs, loc=loc)
|
| 1506 |
+
typemap[lhs.name] = strconsttyp
|
| 1507 |
+
new_block.append(assign_lhs)
|
| 1508 |
+
|
| 1509 |
+
# Make print node
|
| 1510 |
+
print_node = ir.Print(args=[lhs, inst.target], vararg=None, loc=loc)
|
| 1511 |
+
new_block.append(print_node)
|
| 1512 |
+
sig = numba.core.typing.signature(types.none,
|
| 1513 |
+
typemap[lhs.name],
|
| 1514 |
+
typemap[inst.target.name])
|
| 1515 |
+
lowerer.fndesc.calltypes[print_node] = sig
|
| 1516 |
+
loop_body[label] = new_block
|
| 1517 |
+
|
| 1518 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1519 |
+
print("parfor loop body")
|
| 1520 |
+
_print_body(loop_body)
|
| 1521 |
+
|
| 1522 |
+
wrapped_blocks = wrap_loop_body(loop_body)
|
| 1523 |
+
hoisted, not_hoisted = hoist(parfor_params, loop_body, typemap, wrapped_blocks)
|
| 1524 |
+
start_block = gufunc_ir.blocks[min(gufunc_ir.blocks.keys())]
|
| 1525 |
+
start_block.body = start_block.body[:-1] + hoisted + [start_block.body[-1]]
|
| 1526 |
+
unwrap_loop_body(loop_body)
|
| 1527 |
+
|
| 1528 |
+
# store hoisted into diagnostics
|
| 1529 |
+
diagnostics = lowerer.metadata['parfor_diagnostics']
|
| 1530 |
+
diagnostics.hoist_info[parfor.id] = {'hoisted': hoisted,
|
| 1531 |
+
'not_hoisted': not_hoisted}
|
| 1532 |
+
|
| 1533 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1534 |
+
print("After hoisting")
|
| 1535 |
+
_print_body(loop_body)
|
| 1536 |
+
|
| 1537 |
+
# Search all the block in the gufunc outline for the sentinel assignment.
|
| 1538 |
+
for label, block in gufunc_ir.blocks.items():
|
| 1539 |
+
for i, inst in enumerate(block.body):
|
| 1540 |
+
if isinstance(
|
| 1541 |
+
inst,
|
| 1542 |
+
ir.Assign) and inst.target.name == sentinel_name:
|
| 1543 |
+
# We found the sentinel assignment.
|
| 1544 |
+
loc = inst.loc
|
| 1545 |
+
scope = block.scope
|
| 1546 |
+
# split block across __sentinel__
|
| 1547 |
+
# A new block is allocated for the statements prior to the sentinel
|
| 1548 |
+
# but the new block maintains the current block label.
|
| 1549 |
+
prev_block = ir.Block(scope, loc)
|
| 1550 |
+
prev_block.body = block.body[:i]
|
| 1551 |
+
# The current block is used for statements after the sentinel.
|
| 1552 |
+
block.body = block.body[i + 1:]
|
| 1553 |
+
# But the current block gets a new label.
|
| 1554 |
+
body_first_label = min(loop_body.keys())
|
| 1555 |
+
|
| 1556 |
+
# The previous block jumps to the minimum labelled block of the
|
| 1557 |
+
# parfor body.
|
| 1558 |
+
prev_block.append(ir.Jump(body_first_label, loc))
|
| 1559 |
+
# Add all the parfor loop body blocks to the gufunc function's
|
| 1560 |
+
# IR.
|
| 1561 |
+
for (l, b) in loop_body.items():
|
| 1562 |
+
gufunc_ir.blocks[l] = transfer_scope(b, scope)
|
| 1563 |
+
body_last_label = max(loop_body.keys())
|
| 1564 |
+
gufunc_ir.blocks[new_label] = block
|
| 1565 |
+
gufunc_ir.blocks[label] = prev_block
|
| 1566 |
+
# Add a jump from the last parfor body block to the block containing
|
| 1567 |
+
# statements after the sentinel.
|
| 1568 |
+
gufunc_ir.blocks[body_last_label].append(
|
| 1569 |
+
ir.Jump(new_label, loc))
|
| 1570 |
+
break
|
| 1571 |
+
else:
|
| 1572 |
+
continue
|
| 1573 |
+
break
|
| 1574 |
+
|
| 1575 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1576 |
+
print("gufunc_ir last dump before renaming")
|
| 1577 |
+
gufunc_ir.dump()
|
| 1578 |
+
|
| 1579 |
+
gufunc_ir.blocks = rename_labels(gufunc_ir.blocks)
|
| 1580 |
+
remove_dels(gufunc_ir.blocks)
|
| 1581 |
+
|
| 1582 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1583 |
+
print("gufunc_ir last dump")
|
| 1584 |
+
gufunc_ir.dump()
|
| 1585 |
+
print("flags", flags)
|
| 1586 |
+
print("typemap", typemap)
|
| 1587 |
+
|
| 1588 |
+
old_alias = flags.noalias
|
| 1589 |
+
if not has_aliases:
|
| 1590 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1591 |
+
print("No aliases found so adding noalias flag.")
|
| 1592 |
+
flags.noalias = True
|
| 1593 |
+
|
| 1594 |
+
fixup_var_define_in_scope(gufunc_ir.blocks)
|
| 1595 |
+
|
| 1596 |
+
class ParforGufuncCompiler(compiler.CompilerBase):
|
| 1597 |
+
def define_pipelines(self):
|
| 1598 |
+
from numba.core.compiler_machinery import PassManager
|
| 1599 |
+
dpb = compiler.DefaultPassBuilder
|
| 1600 |
+
pm = PassManager("full_parfor_gufunc")
|
| 1601 |
+
parfor_gufunc_passes = dpb.define_parfor_gufunc_pipeline(self.state)
|
| 1602 |
+
pm.passes.extend(parfor_gufunc_passes.passes)
|
| 1603 |
+
lowering_passes = dpb.define_parfor_gufunc_nopython_lowering_pipeline(self.state)
|
| 1604 |
+
pm.passes.extend(lowering_passes.passes)
|
| 1605 |
+
|
| 1606 |
+
pm.finalize()
|
| 1607 |
+
return [pm]
|
| 1608 |
+
|
| 1609 |
+
kernel_func = compiler.compile_ir(
|
| 1610 |
+
typingctx,
|
| 1611 |
+
targetctx,
|
| 1612 |
+
gufunc_ir,
|
| 1613 |
+
gufunc_param_types,
|
| 1614 |
+
types.none,
|
| 1615 |
+
flags,
|
| 1616 |
+
locals,
|
| 1617 |
+
pipeline_class=ParforGufuncCompiler)
|
| 1618 |
+
|
| 1619 |
+
flags.noalias = old_alias
|
| 1620 |
+
|
| 1621 |
+
kernel_sig = signature(types.none, *gufunc_param_types)
|
| 1622 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1623 |
+
print("finished create_gufunc_for_parfor_body. kernel_sig = ", kernel_sig)
|
| 1624 |
+
|
| 1625 |
+
return kernel_func, parfor_args, kernel_sig, func_arg_types, expanded_name_to_tuple_var
|
| 1626 |
+
|
| 1627 |
+
def replace_var_with_array_in_block(vars, block, typemap, calltypes):
|
| 1628 |
+
new_block = []
|
| 1629 |
+
for inst in block.body:
|
| 1630 |
+
if isinstance(inst, ir.Assign) and inst.target.name in vars:
|
| 1631 |
+
loc = inst.loc
|
| 1632 |
+
scope = inst.target.scope
|
| 1633 |
+
|
| 1634 |
+
const_node = ir.Const(0, loc)
|
| 1635 |
+
const_var = scope.redefine("$const_ind_0", loc)
|
| 1636 |
+
typemap[const_var.name] = types.uintp
|
| 1637 |
+
const_assign = ir.Assign(const_node, const_var, loc)
|
| 1638 |
+
new_block.append(const_assign)
|
| 1639 |
+
|
| 1640 |
+
val_var = scope.redefine("$val", loc)
|
| 1641 |
+
typemap[val_var.name] = typemap[inst.target.name]
|
| 1642 |
+
new_block.append(ir.Assign(inst.value, val_var, loc))
|
| 1643 |
+
setitem_node = ir.SetItem(inst.target, const_var, val_var, loc)
|
| 1644 |
+
calltypes[setitem_node] = signature(
|
| 1645 |
+
types.none, types.npytypes.Array(typemap[inst.target.name], 1, "C"), types.intp, typemap[inst.target.name])
|
| 1646 |
+
new_block.append(setitem_node)
|
| 1647 |
+
continue
|
| 1648 |
+
elif isinstance(inst, parfor.Parfor):
|
| 1649 |
+
replace_var_with_array_internal(vars, {0: inst.init_block}, typemap, calltypes)
|
| 1650 |
+
replace_var_with_array_internal(vars, inst.loop_body, typemap, calltypes)
|
| 1651 |
+
|
| 1652 |
+
new_block.append(inst)
|
| 1653 |
+
return new_block
|
| 1654 |
+
|
| 1655 |
+
def replace_var_with_array_internal(vars, loop_body, typemap, calltypes):
|
| 1656 |
+
for label, block in loop_body.items():
|
| 1657 |
+
block.body = replace_var_with_array_in_block(vars, block, typemap, calltypes)
|
| 1658 |
+
|
| 1659 |
+
def replace_var_with_array(vars, loop_body, typemap, calltypes):
|
| 1660 |
+
replace_var_with_array_internal(vars, loop_body, typemap, calltypes)
|
| 1661 |
+
for v in vars:
|
| 1662 |
+
el_typ = typemap[v]
|
| 1663 |
+
typemap.pop(v, None)
|
| 1664 |
+
typemap[v] = types.npytypes.Array(el_typ, 1, "C")
|
| 1665 |
+
|
| 1666 |
+
def call_parallel_gufunc(lowerer, cres, gu_signature, outer_sig, expr_args, expr_arg_types,
|
| 1667 |
+
loop_ranges, redvars, reddict, redarrdict, init_block, index_var_typ, races,
|
| 1668 |
+
exp_name_to_tuple_var):
|
| 1669 |
+
'''
|
| 1670 |
+
Adds the call to the gufunc function from the main function.
|
| 1671 |
+
'''
|
| 1672 |
+
context = lowerer.context
|
| 1673 |
+
builder = lowerer.builder
|
| 1674 |
+
|
| 1675 |
+
from numba.np.ufunc.parallel import (build_gufunc_wrapper,
|
| 1676 |
+
_launch_threads)
|
| 1677 |
+
|
| 1678 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1679 |
+
print("make_parallel_loop")
|
| 1680 |
+
print("outer_sig = ", outer_sig.args, outer_sig.return_type,
|
| 1681 |
+
outer_sig.recvr, outer_sig.pysig)
|
| 1682 |
+
print("loop_ranges = ", loop_ranges)
|
| 1683 |
+
print("expr_args", expr_args)
|
| 1684 |
+
print("expr_arg_types", expr_arg_types)
|
| 1685 |
+
print("gu_signature", gu_signature)
|
| 1686 |
+
|
| 1687 |
+
# Build the wrapper for GUFunc
|
| 1688 |
+
args, return_type = sigutils.normalize_signature(outer_sig)
|
| 1689 |
+
llvm_func = cres.library.get_function(cres.fndesc.llvm_func_name)
|
| 1690 |
+
sin, sout = gu_signature
|
| 1691 |
+
|
| 1692 |
+
# These are necessary for build_gufunc_wrapper to find external symbols
|
| 1693 |
+
_launch_threads()
|
| 1694 |
+
|
| 1695 |
+
info = build_gufunc_wrapper(llvm_func, cres, sin, sout,
|
| 1696 |
+
cache=False, is_parfors=True)
|
| 1697 |
+
wrapper_name = info.name
|
| 1698 |
+
cres.library._ensure_finalized()
|
| 1699 |
+
|
| 1700 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1701 |
+
print("parallel function = ", wrapper_name, cres)
|
| 1702 |
+
|
| 1703 |
+
# loadvars for loop_ranges
|
| 1704 |
+
def load_range(v):
|
| 1705 |
+
if isinstance(v, ir.Var):
|
| 1706 |
+
return lowerer.loadvar(v.name)
|
| 1707 |
+
else:
|
| 1708 |
+
return context.get_constant(types.uintp, v)
|
| 1709 |
+
|
| 1710 |
+
num_dim = len(loop_ranges)
|
| 1711 |
+
for i in range(num_dim):
|
| 1712 |
+
start, stop, step = loop_ranges[i]
|
| 1713 |
+
start = load_range(start)
|
| 1714 |
+
stop = load_range(stop)
|
| 1715 |
+
assert(step == 1) # We do not support loop steps other than 1
|
| 1716 |
+
step = load_range(step)
|
| 1717 |
+
loop_ranges[i] = (start, stop, step)
|
| 1718 |
+
|
| 1719 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1720 |
+
print("call_parallel_gufunc loop_ranges[{}] = ".format(i), start,
|
| 1721 |
+
stop, step)
|
| 1722 |
+
cgutils.printf(builder, "loop range[{}]: %d %d (%d)\n".format(i),
|
| 1723 |
+
start, stop, step)
|
| 1724 |
+
|
| 1725 |
+
# Commonly used LLVM types and constants
|
| 1726 |
+
byte_t = llvmlite.ir.IntType(8)
|
| 1727 |
+
byte_ptr_t = llvmlite.ir.PointerType(byte_t)
|
| 1728 |
+
byte_ptr_ptr_t = llvmlite.ir.PointerType(byte_ptr_t)
|
| 1729 |
+
intp_t = context.get_value_type(types.intp)
|
| 1730 |
+
uintp_t = context.get_value_type(types.uintp)
|
| 1731 |
+
intp_ptr_t = llvmlite.ir.PointerType(intp_t)
|
| 1732 |
+
intp_ptr_ptr_t = llvmlite.ir.PointerType(intp_ptr_t)
|
| 1733 |
+
uintp_ptr_t = llvmlite.ir.PointerType(uintp_t)
|
| 1734 |
+
uintp_ptr_ptr_t = llvmlite.ir.PointerType(uintp_ptr_t)
|
| 1735 |
+
zero = context.get_constant(types.uintp, 0)
|
| 1736 |
+
one = context.get_constant(types.uintp, 1)
|
| 1737 |
+
one_type = one.type
|
| 1738 |
+
sizeof_intp = context.get_abi_sizeof(intp_t)
|
| 1739 |
+
|
| 1740 |
+
# Prepare sched, first pop it out of expr_args, outer_sig, and gu_signature
|
| 1741 |
+
expr_args.pop(0)
|
| 1742 |
+
sched_sig = sin.pop(0)
|
| 1743 |
+
|
| 1744 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1745 |
+
print("Parfor has potentially negative start", index_var_typ.signed)
|
| 1746 |
+
|
| 1747 |
+
if index_var_typ.signed:
|
| 1748 |
+
sched_type = intp_t
|
| 1749 |
+
sched_ptr_type = intp_ptr_t
|
| 1750 |
+
sched_ptr_ptr_type = intp_ptr_ptr_t
|
| 1751 |
+
else:
|
| 1752 |
+
sched_type = uintp_t
|
| 1753 |
+
sched_ptr_type = uintp_ptr_t
|
| 1754 |
+
sched_ptr_ptr_type = uintp_ptr_ptr_t
|
| 1755 |
+
|
| 1756 |
+
# Call do_scheduling with appropriate arguments
|
| 1757 |
+
dim_starts = cgutils.alloca_once(
|
| 1758 |
+
builder, sched_type, size=context.get_constant(
|
| 1759 |
+
types.uintp, num_dim), name="dim_starts")
|
| 1760 |
+
dim_stops = cgutils.alloca_once(
|
| 1761 |
+
builder, sched_type, size=context.get_constant(
|
| 1762 |
+
types.uintp, num_dim), name="dim_stops")
|
| 1763 |
+
for i in range(num_dim):
|
| 1764 |
+
start, stop, step = loop_ranges[i]
|
| 1765 |
+
if start.type != one_type:
|
| 1766 |
+
start = builder.sext(start, one_type)
|
| 1767 |
+
if stop.type != one_type:
|
| 1768 |
+
stop = builder.sext(stop, one_type)
|
| 1769 |
+
if step.type != one_type:
|
| 1770 |
+
step = builder.sext(step, one_type)
|
| 1771 |
+
# substract 1 because do-scheduling takes inclusive ranges
|
| 1772 |
+
stop = builder.sub(stop, one)
|
| 1773 |
+
builder.store(
|
| 1774 |
+
start, builder.gep(
|
| 1775 |
+
dim_starts, [
|
| 1776 |
+
context.get_constant(
|
| 1777 |
+
types.uintp, i)]))
|
| 1778 |
+
builder.store(stop, builder.gep(dim_stops,
|
| 1779 |
+
[context.get_constant(types.uintp, i)]))
|
| 1780 |
+
|
| 1781 |
+
# Prepare to call get/set parallel_chunksize and get the number of threads.
|
| 1782 |
+
get_chunksize = cgutils.get_or_insert_function(
|
| 1783 |
+
builder.module,
|
| 1784 |
+
llvmlite.ir.FunctionType(uintp_t, []),
|
| 1785 |
+
name="get_parallel_chunksize")
|
| 1786 |
+
|
| 1787 |
+
set_chunksize = cgutils.get_or_insert_function(
|
| 1788 |
+
builder.module,
|
| 1789 |
+
llvmlite.ir.FunctionType(llvmlite.ir.VoidType(), [uintp_t]),
|
| 1790 |
+
name="set_parallel_chunksize")
|
| 1791 |
+
|
| 1792 |
+
get_num_threads = cgutils.get_or_insert_function(
|
| 1793 |
+
builder.module,
|
| 1794 |
+
llvmlite.ir.FunctionType(llvmlite.ir.IntType(types.intp.bitwidth), []),
|
| 1795 |
+
"get_num_threads")
|
| 1796 |
+
|
| 1797 |
+
# Get the current number of threads.
|
| 1798 |
+
num_threads = builder.call(get_num_threads, [])
|
| 1799 |
+
# Get the current chunksize so we can use it and restore the value later.
|
| 1800 |
+
current_chunksize = builder.call(get_chunksize, [])
|
| 1801 |
+
|
| 1802 |
+
with cgutils.if_unlikely(builder, builder.icmp_signed('<=', num_threads,
|
| 1803 |
+
num_threads.type(0))):
|
| 1804 |
+
cgutils.printf(builder, "num_threads: %d\n", num_threads)
|
| 1805 |
+
context.call_conv.return_user_exc(builder, RuntimeError,
|
| 1806 |
+
("Invalid number of threads. "
|
| 1807 |
+
"This likely indicates a bug in Numba.",))
|
| 1808 |
+
|
| 1809 |
+
# Call get_sched_size from gufunc_scheduler.cpp that incorporates the size of the work,
|
| 1810 |
+
# the number of threads and the selected chunk size. This will tell us how many entries
|
| 1811 |
+
# in the schedule we will need.
|
| 1812 |
+
get_sched_size_fnty = llvmlite.ir.FunctionType(uintp_t, [uintp_t, uintp_t, intp_ptr_t, intp_ptr_t])
|
| 1813 |
+
get_sched_size = cgutils.get_or_insert_function(
|
| 1814 |
+
builder.module,
|
| 1815 |
+
get_sched_size_fnty,
|
| 1816 |
+
name="get_sched_size")
|
| 1817 |
+
num_divisions = builder.call(get_sched_size, [num_threads,
|
| 1818 |
+
context.get_constant(types.uintp, num_dim),
|
| 1819 |
+
dim_starts,
|
| 1820 |
+
dim_stops])
|
| 1821 |
+
# Set the chunksize to zero so that any nested calls get the default chunk size behavior.
|
| 1822 |
+
builder.call(set_chunksize, [zero])
|
| 1823 |
+
|
| 1824 |
+
# Each entry in the schedule is 2 times the number of dimensions long.
|
| 1825 |
+
multiplier = context.get_constant(types.uintp, num_dim * 2)
|
| 1826 |
+
# Compute the total number of entries in the schedule.
|
| 1827 |
+
sched_size = builder.mul(num_divisions, multiplier)
|
| 1828 |
+
|
| 1829 |
+
# Prepare to dynamically allocate memory to hold the schedule.
|
| 1830 |
+
alloc_sched_fnty = llvmlite.ir.FunctionType(sched_ptr_type, [uintp_t])
|
| 1831 |
+
alloc_sched_func = cgutils.get_or_insert_function(
|
| 1832 |
+
builder.module,
|
| 1833 |
+
alloc_sched_fnty,
|
| 1834 |
+
name="allocate_sched")
|
| 1835 |
+
# Call gufunc_scheduler.cpp to allocate the schedule.
|
| 1836 |
+
# This may or may not do pooling.
|
| 1837 |
+
alloc_space = builder.call(alloc_sched_func, [sched_size])
|
| 1838 |
+
# Allocate a slot in the entry block to store the schedule pointer.
|
| 1839 |
+
sched = cgutils.alloca_once(builder, sched_ptr_type)
|
| 1840 |
+
# Store the schedule pointer into that slot.
|
| 1841 |
+
builder.store(alloc_space, sched)
|
| 1842 |
+
|
| 1843 |
+
debug_flag = 1 if config.DEBUG_ARRAY_OPT else 0
|
| 1844 |
+
scheduling_fnty = llvmlite.ir.FunctionType(
|
| 1845 |
+
intp_ptr_t, [uintp_t, intp_ptr_t, intp_ptr_t, uintp_t, sched_ptr_type, intp_t])
|
| 1846 |
+
if index_var_typ.signed:
|
| 1847 |
+
do_scheduling = cgutils.get_or_insert_function(builder.module,
|
| 1848 |
+
scheduling_fnty,
|
| 1849 |
+
name="do_scheduling_signed")
|
| 1850 |
+
else:
|
| 1851 |
+
do_scheduling = cgutils.get_or_insert_function(builder.module,
|
| 1852 |
+
scheduling_fnty,
|
| 1853 |
+
name="do_scheduling_unsigned")
|
| 1854 |
+
|
| 1855 |
+
# Call the scheduling routine that decides how to break up the work.
|
| 1856 |
+
builder.call(
|
| 1857 |
+
do_scheduling, [
|
| 1858 |
+
context.get_constant(
|
| 1859 |
+
types.uintp, num_dim), dim_starts, dim_stops, num_divisions,
|
| 1860 |
+
builder.load(sched), context.get_constant(
|
| 1861 |
+
types.intp, debug_flag)])
|
| 1862 |
+
|
| 1863 |
+
# Get the LLVM vars for the Numba IR reduction array vars.
|
| 1864 |
+
redarrs = [lowerer.loadvar(redarrdict[x].name) for x in redvars]
|
| 1865 |
+
|
| 1866 |
+
nredvars = len(redvars)
|
| 1867 |
+
ninouts = len(expr_args) - nredvars
|
| 1868 |
+
|
| 1869 |
+
def load_potential_tuple_var(x):
|
| 1870 |
+
"""Given a variable name, if that variable is not a new name
|
| 1871 |
+
introduced as the extracted part of a tuple then just return
|
| 1872 |
+
the variable loaded from its name. However, if the variable
|
| 1873 |
+
does represent part of a tuple, as recognized by the name of
|
| 1874 |
+
the variable being present in the exp_name_to_tuple_var dict,
|
| 1875 |
+
then we load the original tuple var instead that we get from
|
| 1876 |
+
the dict and then extract the corresponding element of the
|
| 1877 |
+
tuple, also stored and returned to use in the dict (i.e., offset).
|
| 1878 |
+
"""
|
| 1879 |
+
if x in exp_name_to_tuple_var:
|
| 1880 |
+
orig_tup, offset = exp_name_to_tuple_var[x]
|
| 1881 |
+
tup_var = lowerer.loadvar(orig_tup)
|
| 1882 |
+
res = builder.extract_value(tup_var, offset)
|
| 1883 |
+
return res
|
| 1884 |
+
else:
|
| 1885 |
+
return lowerer.loadvar(x)
|
| 1886 |
+
|
| 1887 |
+
# ----------------------------------------------------------------------------
|
| 1888 |
+
# Prepare arguments: args, shapes, steps, data
|
| 1889 |
+
all_args = [load_potential_tuple_var(x) for x in expr_args[:ninouts]] + redarrs
|
| 1890 |
+
num_args = len(all_args)
|
| 1891 |
+
num_inps = len(sin) + 1
|
| 1892 |
+
args = cgutils.alloca_once(
|
| 1893 |
+
builder,
|
| 1894 |
+
byte_ptr_t,
|
| 1895 |
+
size=context.get_constant(
|
| 1896 |
+
types.intp,
|
| 1897 |
+
1 + num_args),
|
| 1898 |
+
name="pargs")
|
| 1899 |
+
array_strides = []
|
| 1900 |
+
# sched goes first
|
| 1901 |
+
builder.store(builder.bitcast(builder.load(sched), byte_ptr_t), args)
|
| 1902 |
+
array_strides.append(context.get_constant(types.intp, sizeof_intp))
|
| 1903 |
+
rv_to_arg_dict = {}
|
| 1904 |
+
# followed by other arguments
|
| 1905 |
+
for i in range(num_args):
|
| 1906 |
+
arg = all_args[i]
|
| 1907 |
+
var = expr_args[i]
|
| 1908 |
+
aty = expr_arg_types[i]
|
| 1909 |
+
dst = builder.gep(args, [context.get_constant(types.intp, i + 1)])
|
| 1910 |
+
if i >= ninouts: # reduction variables
|
| 1911 |
+
ary = context.make_array(aty)(context, builder, arg)
|
| 1912 |
+
strides = cgutils.unpack_tuple(builder, ary.strides, aty.ndim)
|
| 1913 |
+
# Start from 1 because we skip the first dimension of length num_threads just like sched.
|
| 1914 |
+
for j in range(len(strides)):
|
| 1915 |
+
array_strides.append(strides[j])
|
| 1916 |
+
builder.store(builder.bitcast(ary.data, byte_ptr_t), dst)
|
| 1917 |
+
elif isinstance(aty, types.ArrayCompatible):
|
| 1918 |
+
if var in races:
|
| 1919 |
+
typ = (context.get_data_type(aty.dtype)
|
| 1920 |
+
if aty.dtype != types.boolean
|
| 1921 |
+
else llvmlite.ir.IntType(1))
|
| 1922 |
+
|
| 1923 |
+
rv_arg = cgutils.alloca_once(builder, typ)
|
| 1924 |
+
builder.store(arg, rv_arg)
|
| 1925 |
+
builder.store(builder.bitcast(rv_arg, byte_ptr_t), dst)
|
| 1926 |
+
rv_to_arg_dict[var] = (arg, rv_arg)
|
| 1927 |
+
|
| 1928 |
+
array_strides.append(context.get_constant(types.intp, context.get_abi_sizeof(typ)))
|
| 1929 |
+
else:
|
| 1930 |
+
ary = context.make_array(aty)(context, builder, arg)
|
| 1931 |
+
strides = cgutils.unpack_tuple(builder, ary.strides, aty.ndim)
|
| 1932 |
+
for j in range(len(strides)):
|
| 1933 |
+
array_strides.append(strides[j])
|
| 1934 |
+
builder.store(builder.bitcast(ary.data, byte_ptr_t), dst)
|
| 1935 |
+
else:
|
| 1936 |
+
if i < num_inps:
|
| 1937 |
+
# Scalar input, need to store the value in an array of size 1
|
| 1938 |
+
if isinstance(aty, types.Optional):
|
| 1939 |
+
# Unpack optional type
|
| 1940 |
+
unpacked_aty = aty.type
|
| 1941 |
+
arg = context.cast(builder, arg, aty, unpacked_aty)
|
| 1942 |
+
else:
|
| 1943 |
+
unpacked_aty = aty
|
| 1944 |
+
typ = (context.get_data_type(unpacked_aty)
|
| 1945 |
+
if not isinstance(unpacked_aty, types.Boolean)
|
| 1946 |
+
else llvmlite.ir.IntType(1))
|
| 1947 |
+
ptr = cgutils.alloca_once(builder, typ)
|
| 1948 |
+
builder.store(arg, ptr)
|
| 1949 |
+
else:
|
| 1950 |
+
# Scalar output, must allocate
|
| 1951 |
+
typ = (context.get_data_type(aty)
|
| 1952 |
+
if not isinstance(aty, types.Boolean)
|
| 1953 |
+
else llvmlite.ir.IntType(1))
|
| 1954 |
+
ptr = cgutils.alloca_once(builder, typ)
|
| 1955 |
+
builder.store(builder.bitcast(ptr, byte_ptr_t), dst)
|
| 1956 |
+
|
| 1957 |
+
# ----------------------------------------------------------------------------
|
| 1958 |
+
# Next, we prepare the individual dimension info recorded in gu_signature
|
| 1959 |
+
sig_dim_dict = {}
|
| 1960 |
+
occurrences = []
|
| 1961 |
+
occurrences = [sched_sig[0]]
|
| 1962 |
+
sig_dim_dict[sched_sig[0]] = context.get_constant(types.intp, 2 * num_dim)
|
| 1963 |
+
assert len(expr_args) == len(all_args)
|
| 1964 |
+
assert len(expr_args) == len(expr_arg_types)
|
| 1965 |
+
assert len(expr_args) == len(sin + sout)
|
| 1966 |
+
assert len(expr_args) == len(outer_sig.args[1:])
|
| 1967 |
+
for var, arg, aty, gu_sig in zip(expr_args, all_args,
|
| 1968 |
+
expr_arg_types, sin + sout):
|
| 1969 |
+
if isinstance(aty, types.npytypes.Array):
|
| 1970 |
+
i = aty.ndim - len(gu_sig)
|
| 1971 |
+
else:
|
| 1972 |
+
i = 0
|
| 1973 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1974 |
+
print("var =", var, "gu_sig =", gu_sig, "type =", aty, "i =", i)
|
| 1975 |
+
|
| 1976 |
+
for dim_sym in gu_sig:
|
| 1977 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1978 |
+
print("var = ", var, " type = ", aty)
|
| 1979 |
+
if var in races:
|
| 1980 |
+
sig_dim_dict[dim_sym] = context.get_constant(types.intp, 1)
|
| 1981 |
+
else:
|
| 1982 |
+
ary = context.make_array(aty)(context, builder, arg)
|
| 1983 |
+
shapes = cgutils.unpack_tuple(builder, ary.shape, aty.ndim)
|
| 1984 |
+
sig_dim_dict[dim_sym] = shapes[i]
|
| 1985 |
+
|
| 1986 |
+
if not (dim_sym in occurrences):
|
| 1987 |
+
if config.DEBUG_ARRAY_OPT:
|
| 1988 |
+
print("dim_sym = ", dim_sym, ", i = ", i)
|
| 1989 |
+
cgutils.printf(builder, dim_sym + " = %d\n", sig_dim_dict[dim_sym])
|
| 1990 |
+
occurrences.append(dim_sym)
|
| 1991 |
+
i = i + 1
|
| 1992 |
+
|
| 1993 |
+
# ----------------------------------------------------------------------------
|
| 1994 |
+
# Prepare shapes, which is a single number (outer loop size), followed by
|
| 1995 |
+
# the size of individual shape variables.
|
| 1996 |
+
nshapes = len(sig_dim_dict) + 1
|
| 1997 |
+
shapes = cgutils.alloca_once(builder, intp_t, size=nshapes, name="pshape")
|
| 1998 |
+
# For now, outer loop size is the same as number of threads
|
| 1999 |
+
builder.store(num_divisions, shapes)
|
| 2000 |
+
# Individual shape variables go next
|
| 2001 |
+
i = 1
|
| 2002 |
+
for dim_sym in occurrences:
|
| 2003 |
+
if config.DEBUG_ARRAY_OPT:
|
| 2004 |
+
cgutils.printf(builder, dim_sym + " = %d\n", sig_dim_dict[dim_sym])
|
| 2005 |
+
builder.store(
|
| 2006 |
+
sig_dim_dict[dim_sym], builder.gep(
|
| 2007 |
+
shapes, [
|
| 2008 |
+
context.get_constant(
|
| 2009 |
+
types.intp, i)]))
|
| 2010 |
+
i = i + 1
|
| 2011 |
+
|
| 2012 |
+
# ----------------------------------------------------------------------------
|
| 2013 |
+
# Prepare steps for each argument. Note that all steps are counted in
|
| 2014 |
+
# bytes.
|
| 2015 |
+
num_steps = num_args + 1 + len(array_strides)
|
| 2016 |
+
steps = cgutils.alloca_once(
|
| 2017 |
+
builder, intp_t, size=context.get_constant(
|
| 2018 |
+
types.intp, num_steps), name="psteps")
|
| 2019 |
+
# First goes the step size for sched, which is 2 * num_dim
|
| 2020 |
+
builder.store(context.get_constant(types.intp, 2 * num_dim * sizeof_intp),
|
| 2021 |
+
steps)
|
| 2022 |
+
# The steps for all others are 0, except for reduction results.
|
| 2023 |
+
for i in range(num_args):
|
| 2024 |
+
# steps are strides from one thread to the next
|
| 2025 |
+
stepsize = zero
|
| 2026 |
+
|
| 2027 |
+
dst = builder.gep(steps, [context.get_constant(types.intp, 1 + i)])
|
| 2028 |
+
builder.store(stepsize, dst)
|
| 2029 |
+
for j in range(len(array_strides)):
|
| 2030 |
+
dst = builder.gep(
|
| 2031 |
+
steps, [
|
| 2032 |
+
context.get_constant(
|
| 2033 |
+
types.intp, 1 + num_args + j)])
|
| 2034 |
+
builder.store(array_strides[j], dst)
|
| 2035 |
+
|
| 2036 |
+
# ----------------------------------------------------------------------------
|
| 2037 |
+
# prepare data
|
| 2038 |
+
data = cgutils.get_null_value(byte_ptr_t)
|
| 2039 |
+
|
| 2040 |
+
fnty = llvmlite.ir.FunctionType(llvmlite.ir.VoidType(),
|
| 2041 |
+
[byte_ptr_ptr_t, intp_ptr_t,
|
| 2042 |
+
intp_ptr_t, byte_ptr_t])
|
| 2043 |
+
|
| 2044 |
+
fn = cgutils.get_or_insert_function(builder.module, fnty, wrapper_name)
|
| 2045 |
+
context.active_code_library.add_linking_library(info.library)
|
| 2046 |
+
|
| 2047 |
+
if config.DEBUG_ARRAY_OPT:
|
| 2048 |
+
cgutils.printf(builder, "before calling kernel %p\n", fn)
|
| 2049 |
+
builder.call(fn, [args, shapes, steps, data])
|
| 2050 |
+
if config.DEBUG_ARRAY_OPT:
|
| 2051 |
+
cgutils.printf(builder, "after calling kernel %p\n", fn)
|
| 2052 |
+
|
| 2053 |
+
builder.call(set_chunksize, [current_chunksize])
|
| 2054 |
+
|
| 2055 |
+
# Deallocate the schedule's memory.
|
| 2056 |
+
dealloc_sched_fnty = llvmlite.ir.FunctionType(llvmlite.ir.VoidType(), [sched_ptr_type])
|
| 2057 |
+
dealloc_sched_func = cgutils.get_or_insert_function(
|
| 2058 |
+
builder.module,
|
| 2059 |
+
dealloc_sched_fnty,
|
| 2060 |
+
name="deallocate_sched")
|
| 2061 |
+
builder.call(dealloc_sched_func, [builder.load(sched)])
|
| 2062 |
+
|
| 2063 |
+
for k, v in rv_to_arg_dict.items():
|
| 2064 |
+
arg, rv_arg = v
|
| 2065 |
+
only_elem_ptr = builder.gep(rv_arg, [context.get_constant(types.intp, 0)])
|
| 2066 |
+
builder.store(builder.load(only_elem_ptr), lowerer.getvar(k))
|
| 2067 |
+
|
| 2068 |
+
context.active_code_library.add_linking_library(cres.library)
|
shared/package-files/d1/d11a5a4f1adb5ff9a5d08b2c8a0424aff10ced87e9b342c1c348dfd4a468bf82/blob
ADDED
|
Binary file (396 Bytes). View file
|
|
|
shared/package-files/d1/d11e5dfca67654cfb9f73d9afce9ca94c45403af02741c7ac346c25ded1d2a94/blob
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
shared/package-files/d1/d121f02fccfb396a6b51507770b045025bf49b4fef45febd8a287ed64461618d/blob
ADDED
|
@@ -0,0 +1,410 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
from __future__ import annotations
|
| 2 |
+
|
| 3 |
+
from typing import TYPE_CHECKING, Any, Generic, Literal, Protocol
|
| 4 |
+
|
| 5 |
+
from narwhals._compliant.any_namespace import (
|
| 6 |
+
CatNamespace,
|
| 7 |
+
DateTimeNamespace,
|
| 8 |
+
ListNamespace,
|
| 9 |
+
StringNamespace,
|
| 10 |
+
StructNamespace,
|
| 11 |
+
)
|
| 12 |
+
from narwhals._compliant.column import CompliantColumn
|
| 13 |
+
from narwhals._compliant.typing import (
|
| 14 |
+
CompliantSeriesT_co,
|
| 15 |
+
EagerDataFrameAny,
|
| 16 |
+
EagerSeriesT,
|
| 17 |
+
EagerSeriesT_co,
|
| 18 |
+
NativeSeriesT,
|
| 19 |
+
NativeSeriesT_co,
|
| 20 |
+
)
|
| 21 |
+
from narwhals._translate import FromIterable, FromNative, NumpyConvertible, ToNarwhals
|
| 22 |
+
from narwhals._typing_compat import TypeVar, assert_never
|
| 23 |
+
from narwhals._utils import (
|
| 24 |
+
_StoresCompliant,
|
| 25 |
+
_StoresNative,
|
| 26 |
+
is_compliant_series,
|
| 27 |
+
is_sized_multi_index_selector,
|
| 28 |
+
unstable,
|
| 29 |
+
)
|
| 30 |
+
|
| 31 |
+
if TYPE_CHECKING:
|
| 32 |
+
from collections.abc import Iterable, Iterator, Sequence
|
| 33 |
+
from types import ModuleType
|
| 34 |
+
|
| 35 |
+
import pandas as pd
|
| 36 |
+
import polars as pl
|
| 37 |
+
import pyarrow as pa
|
| 38 |
+
from typing_extensions import NotRequired, Self, TypedDict
|
| 39 |
+
|
| 40 |
+
from narwhals._compliant.dataframe import CompliantDataFrame
|
| 41 |
+
from narwhals._compliant.namespace import EagerNamespace
|
| 42 |
+
from narwhals._utils import Implementation, Version, _LimitedContext
|
| 43 |
+
from narwhals.dtypes import DType
|
| 44 |
+
from narwhals.series import Series
|
| 45 |
+
from narwhals.typing import (
|
| 46 |
+
Into1DArray,
|
| 47 |
+
IntoDType,
|
| 48 |
+
MultiIndexSelector,
|
| 49 |
+
PythonLiteral,
|
| 50 |
+
RollingInterpolationMethod,
|
| 51 |
+
SizedMultiIndexSelector,
|
| 52 |
+
_1DArray,
|
| 53 |
+
_SliceIndex,
|
| 54 |
+
)
|
| 55 |
+
|
| 56 |
+
class HistData(TypedDict, Generic[NativeSeriesT, "_CountsT_co"]):
|
| 57 |
+
breakpoint: NotRequired[list[float] | _1DArray | list[Any]]
|
| 58 |
+
count: NativeSeriesT | _1DArray | _CountsT_co | list[Any]
|
| 59 |
+
|
| 60 |
+
|
| 61 |
+
_CountsT_co = TypeVar("_CountsT_co", bound="Iterable[Any]", covariant=True)
|
| 62 |
+
|
| 63 |
+
__all__ = [
|
| 64 |
+
"CompliantSeries",
|
| 65 |
+
"EagerSeries",
|
| 66 |
+
"EagerSeriesCatNamespace",
|
| 67 |
+
"EagerSeriesDateTimeNamespace",
|
| 68 |
+
"EagerSeriesHist",
|
| 69 |
+
"EagerSeriesListNamespace",
|
| 70 |
+
"EagerSeriesNamespace",
|
| 71 |
+
"EagerSeriesStringNamespace",
|
| 72 |
+
"EagerSeriesStructNamespace",
|
| 73 |
+
]
|
| 74 |
+
|
| 75 |
+
|
| 76 |
+
class CompliantSeries(
|
| 77 |
+
NumpyConvertible["_1DArray", "Into1DArray"],
|
| 78 |
+
FromIterable,
|
| 79 |
+
FromNative[NativeSeriesT],
|
| 80 |
+
ToNarwhals["Series[NativeSeriesT]"],
|
| 81 |
+
CompliantColumn,
|
| 82 |
+
Protocol[NativeSeriesT],
|
| 83 |
+
):
|
| 84 |
+
# NOTE: `narwhals`
|
| 85 |
+
_implementation: Implementation
|
| 86 |
+
|
| 87 |
+
@property
|
| 88 |
+
def native(self) -> NativeSeriesT: ...
|
| 89 |
+
def __narwhals_series__(self) -> Self:
|
| 90 |
+
return self
|
| 91 |
+
|
| 92 |
+
def __native_namespace__(self) -> ModuleType: ...
|
| 93 |
+
@classmethod
|
| 94 |
+
def from_native(cls, data: NativeSeriesT, /, *, context: _LimitedContext) -> Self: ...
|
| 95 |
+
def to_narwhals(self) -> Series[NativeSeriesT]:
|
| 96 |
+
return self._version.series(self, level="full")
|
| 97 |
+
|
| 98 |
+
def _with_native(self, series: Any) -> Self: ...
|
| 99 |
+
def _with_version(self, version: Version) -> Self: ...
|
| 100 |
+
|
| 101 |
+
# NOTE: `polars`
|
| 102 |
+
@property
|
| 103 |
+
def dtype(self) -> DType: ...
|
| 104 |
+
@property
|
| 105 |
+
def name(self) -> str: ...
|
| 106 |
+
def __array__(self, dtype: Any, *, copy: bool | None) -> _1DArray: ...
|
| 107 |
+
def __contains__(self, other: Any) -> bool: ...
|
| 108 |
+
def __getitem__(self, item: MultiIndexSelector[Self]) -> Any: ...
|
| 109 |
+
def __iter__(self) -> Iterator[Any]: ...
|
| 110 |
+
def __len__(self) -> int:
|
| 111 |
+
return len(self.native)
|
| 112 |
+
|
| 113 |
+
@classmethod
|
| 114 |
+
def from_numpy(cls, data: Into1DArray, /, *, context: _LimitedContext) -> Self: ...
|
| 115 |
+
@classmethod
|
| 116 |
+
def from_iterable(
|
| 117 |
+
cls,
|
| 118 |
+
data: Iterable[Any],
|
| 119 |
+
/,
|
| 120 |
+
*,
|
| 121 |
+
context: _LimitedContext,
|
| 122 |
+
name: str = "",
|
| 123 |
+
dtype: IntoDType | None = None,
|
| 124 |
+
) -> Self: ...
|
| 125 |
+
def __radd__(self, other: Any) -> Self: ...
|
| 126 |
+
def __rand__(self, other: Any) -> Self: ...
|
| 127 |
+
def __rmul__(self, other: Any) -> Self: ...
|
| 128 |
+
def __ror__(self, other: Any) -> Self: ...
|
| 129 |
+
def all(self) -> bool: ...
|
| 130 |
+
def any(self) -> bool: ...
|
| 131 |
+
def any_value(self, *, ignore_nulls: bool) -> PythonLiteral: ...
|
| 132 |
+
def arg_max(self) -> int: ...
|
| 133 |
+
def arg_min(self) -> int: ...
|
| 134 |
+
def arg_true(self) -> Self: ...
|
| 135 |
+
def count(self) -> int: ...
|
| 136 |
+
def filter(self, predicate: Any) -> Self: ...
|
| 137 |
+
def first(self) -> PythonLiteral: ...
|
| 138 |
+
def last(self) -> PythonLiteral: ...
|
| 139 |
+
def gather_every(self, n: int, offset: int) -> Self: ...
|
| 140 |
+
def head(self, n: int) -> Self: ...
|
| 141 |
+
def is_empty(self) -> bool:
|
| 142 |
+
return self.len() == 0
|
| 143 |
+
|
| 144 |
+
def is_sorted(self, *, descending: bool) -> bool: ...
|
| 145 |
+
def item(self, index: int | None) -> Any: ...
|
| 146 |
+
def kurtosis(self) -> float | None: ...
|
| 147 |
+
def len(self) -> int: ...
|
| 148 |
+
def max(self) -> Any: ...
|
| 149 |
+
def mean(self) -> float: ...
|
| 150 |
+
def median(self) -> float: ...
|
| 151 |
+
def min(self) -> Any: ...
|
| 152 |
+
def n_unique(self) -> int: ...
|
| 153 |
+
def null_count(self) -> int: ...
|
| 154 |
+
def quantile(
|
| 155 |
+
self, quantile: float, interpolation: RollingInterpolationMethod
|
| 156 |
+
) -> float: ...
|
| 157 |
+
def sample(self, n: int, *, with_replacement: bool, seed: int | None) -> Self: ...
|
| 158 |
+
def scatter(self, indices: Self, values: Self) -> Self: ...
|
| 159 |
+
def shift(self, n: int) -> Self: ...
|
| 160 |
+
def skew(self) -> float | None: ...
|
| 161 |
+
def sort(self, *, descending: bool, nulls_last: bool) -> Self: ...
|
| 162 |
+
def std(self, *, ddof: int) -> float: ...
|
| 163 |
+
def sum(self) -> float: ...
|
| 164 |
+
def tail(self, n: int) -> Self: ...
|
| 165 |
+
def to_arrow(self) -> pa.Array[Any]: ...
|
| 166 |
+
def to_dummies(
|
| 167 |
+
self, *, separator: str, drop_first: bool
|
| 168 |
+
) -> CompliantDataFrame[Self, Any, Any, Any]: ...
|
| 169 |
+
def to_frame(self) -> CompliantDataFrame[Self, Any, Any, Any]: ...
|
| 170 |
+
def to_list(self) -> list[Any]: ...
|
| 171 |
+
def to_pandas(self) -> pd.Series[Any]: ...
|
| 172 |
+
def to_polars(self) -> pl.Series: ...
|
| 173 |
+
def unique(self, *, maintain_order: bool = False) -> Self: ...
|
| 174 |
+
def value_counts(
|
| 175 |
+
self, *, sort: bool, parallel: bool, name: str | None, normalize: bool
|
| 176 |
+
) -> CompliantDataFrame[Self, Any, Any, Any]: ...
|
| 177 |
+
def var(self, *, ddof: int) -> float: ...
|
| 178 |
+
def zip_with(self, mask: Any, other: Any) -> Self: ...
|
| 179 |
+
|
| 180 |
+
# NOTE: *Technically* `polars`
|
| 181 |
+
@unstable
|
| 182 |
+
def hist_from_bins(
|
| 183 |
+
self, bins: list[float], *, include_breakpoint: bool
|
| 184 |
+
) -> CompliantDataFrame[Self, Any, Any, Any]:
|
| 185 |
+
"""`Series.hist(bins=..., bin_count=None)`."""
|
| 186 |
+
...
|
| 187 |
+
|
| 188 |
+
@unstable
|
| 189 |
+
def hist_from_bin_count(
|
| 190 |
+
self, bin_count: int, *, include_breakpoint: bool
|
| 191 |
+
) -> CompliantDataFrame[Self, Any, Any, Any]:
|
| 192 |
+
"""`Series.hist(bins=None, bin_count=...)`."""
|
| 193 |
+
...
|
| 194 |
+
|
| 195 |
+
|
| 196 |
+
class EagerSeries(CompliantSeries[NativeSeriesT], Protocol[NativeSeriesT]):
|
| 197 |
+
_native_series: Any
|
| 198 |
+
_implementation: Implementation
|
| 199 |
+
_version: Version
|
| 200 |
+
_broadcast: bool
|
| 201 |
+
|
| 202 |
+
@property
|
| 203 |
+
def _backend_version(self) -> tuple[int, ...]:
|
| 204 |
+
return self._implementation._backend_version()
|
| 205 |
+
|
| 206 |
+
@classmethod
|
| 207 |
+
def _align_full_broadcast(cls, *series: Self) -> Sequence[Self]:
|
| 208 |
+
"""Ensure all of `series` have the same length (and index if `pandas`).
|
| 209 |
+
|
| 210 |
+
Scalars get broadcasted to the full length of the longest Series.
|
| 211 |
+
|
| 212 |
+
This is useful when you need to construct a full Series anyway, such as:
|
| 213 |
+
|
| 214 |
+
DataFrame.select(...)
|
| 215 |
+
|
| 216 |
+
It should not be used in binary operations, such as:
|
| 217 |
+
|
| 218 |
+
nw.col("a") - nw.col("a").mean()
|
| 219 |
+
|
| 220 |
+
because then it's more efficient to extract the right-hand-side's single element as a scalar.
|
| 221 |
+
"""
|
| 222 |
+
...
|
| 223 |
+
|
| 224 |
+
def _from_scalar(self, value: Any) -> Self:
|
| 225 |
+
return self.from_iterable([value], name=self.name, context=self)
|
| 226 |
+
|
| 227 |
+
def _with_native(
|
| 228 |
+
self, series: NativeSeriesT, *, preserve_broadcast: bool = False
|
| 229 |
+
) -> Self:
|
| 230 |
+
"""Return a new `CompliantSeries`, wrapping the native `series`.
|
| 231 |
+
|
| 232 |
+
In cases when operations are known to not affect whether a result should
|
| 233 |
+
be broadcast, we can pass `preserve_broadcast=True`.
|
| 234 |
+
Set this with care - it should only be set for unary expressions which don't
|
| 235 |
+
change length or order, such as `.alias` or `.fill_null`. If in doubt, don't
|
| 236 |
+
set it, you probably don't need it.
|
| 237 |
+
"""
|
| 238 |
+
...
|
| 239 |
+
|
| 240 |
+
def __narwhals_namespace__(
|
| 241 |
+
self,
|
| 242 |
+
) -> EagerNamespace[Any, Self, Any, Any, NativeSeriesT]: ...
|
| 243 |
+
|
| 244 |
+
def _gather(self, rows: SizedMultiIndexSelector[NativeSeriesT]) -> Self: ...
|
| 245 |
+
def _gather_slice(self, rows: _SliceIndex | range) -> Self: ...
|
| 246 |
+
def __getitem__(self, item: MultiIndexSelector[Self]) -> Self:
|
| 247 |
+
if isinstance(item, (slice, range)):
|
| 248 |
+
return self._gather_slice(item)
|
| 249 |
+
if is_compliant_series(item):
|
| 250 |
+
return self._gather(item.native)
|
| 251 |
+
elif is_sized_multi_index_selector(item): # noqa: RET505
|
| 252 |
+
return self._gather(item)
|
| 253 |
+
assert_never(item)
|
| 254 |
+
|
| 255 |
+
@property
|
| 256 |
+
def str(self) -> EagerSeriesStringNamespace[Self, NativeSeriesT]: ...
|
| 257 |
+
@property
|
| 258 |
+
def dt(self) -> EagerSeriesDateTimeNamespace[Self, NativeSeriesT]: ...
|
| 259 |
+
@property
|
| 260 |
+
def cat(self) -> EagerSeriesCatNamespace[Self, NativeSeriesT]: ...
|
| 261 |
+
@property
|
| 262 |
+
def list(self) -> EagerSeriesListNamespace[Self, NativeSeriesT]: ...
|
| 263 |
+
@property
|
| 264 |
+
def struct(self) -> EagerSeriesStructNamespace[Self, NativeSeriesT]: ...
|
| 265 |
+
|
| 266 |
+
|
| 267 |
+
class _SeriesNamespace( # type: ignore[misc]
|
| 268 |
+
_StoresCompliant[CompliantSeriesT_co],
|
| 269 |
+
_StoresNative[NativeSeriesT_co],
|
| 270 |
+
Protocol[CompliantSeriesT_co, NativeSeriesT_co],
|
| 271 |
+
):
|
| 272 |
+
_compliant_series: CompliantSeriesT_co
|
| 273 |
+
|
| 274 |
+
@property
|
| 275 |
+
def compliant(self) -> CompliantSeriesT_co:
|
| 276 |
+
return self._compliant_series
|
| 277 |
+
|
| 278 |
+
@property
|
| 279 |
+
def implementation(self) -> Implementation:
|
| 280 |
+
return self.compliant._implementation
|
| 281 |
+
|
| 282 |
+
@property
|
| 283 |
+
def backend_version(self) -> tuple[int, ...]:
|
| 284 |
+
return self.implementation._backend_version()
|
| 285 |
+
|
| 286 |
+
@property
|
| 287 |
+
def version(self) -> Version:
|
| 288 |
+
return self.compliant._version
|
| 289 |
+
|
| 290 |
+
@property
|
| 291 |
+
def native(self) -> NativeSeriesT_co:
|
| 292 |
+
return self._compliant_series.native # type: ignore[no-any-return]
|
| 293 |
+
|
| 294 |
+
def with_native(self, series: Any, /) -> CompliantSeriesT_co:
|
| 295 |
+
return self.compliant._with_native(series)
|
| 296 |
+
|
| 297 |
+
|
| 298 |
+
class EagerSeriesNamespace(
|
| 299 |
+
_SeriesNamespace[EagerSeriesT_co, NativeSeriesT_co],
|
| 300 |
+
Generic[EagerSeriesT_co, NativeSeriesT_co],
|
| 301 |
+
):
|
| 302 |
+
_compliant_series: EagerSeriesT_co
|
| 303 |
+
|
| 304 |
+
def __init__(self, series: EagerSeriesT_co, /) -> None:
|
| 305 |
+
self._compliant_series = series
|
| 306 |
+
|
| 307 |
+
|
| 308 |
+
class EagerSeriesCatNamespace( # type: ignore[misc]
|
| 309 |
+
_SeriesNamespace[EagerSeriesT_co, NativeSeriesT_co],
|
| 310 |
+
CatNamespace[EagerSeriesT_co],
|
| 311 |
+
Protocol[EagerSeriesT_co, NativeSeriesT_co],
|
| 312 |
+
): ...
|
| 313 |
+
|
| 314 |
+
|
| 315 |
+
class EagerSeriesDateTimeNamespace( # type: ignore[misc]
|
| 316 |
+
_SeriesNamespace[EagerSeriesT_co, NativeSeriesT_co],
|
| 317 |
+
DateTimeNamespace[EagerSeriesT_co],
|
| 318 |
+
Protocol[EagerSeriesT_co, NativeSeriesT_co],
|
| 319 |
+
): ...
|
| 320 |
+
|
| 321 |
+
|
| 322 |
+
class EagerSeriesListNamespace( # pyright: ignore[reportInvalidTypeVarUse]
|
| 323 |
+
_SeriesNamespace[EagerSeriesT, NativeSeriesT_co],
|
| 324 |
+
ListNamespace[EagerSeriesT],
|
| 325 |
+
Protocol[EagerSeriesT, NativeSeriesT_co],
|
| 326 |
+
): ...
|
| 327 |
+
|
| 328 |
+
|
| 329 |
+
class EagerSeriesStringNamespace(
|
| 330 |
+
_SeriesNamespace[EagerSeriesT, NativeSeriesT_co],
|
| 331 |
+
StringNamespace[EagerSeriesT],
|
| 332 |
+
Protocol[EagerSeriesT, NativeSeriesT_co],
|
| 333 |
+
): ...
|
| 334 |
+
|
| 335 |
+
|
| 336 |
+
class EagerSeriesStructNamespace( # type: ignore[misc]
|
| 337 |
+
_SeriesNamespace[EagerSeriesT_co, NativeSeriesT_co],
|
| 338 |
+
StructNamespace[EagerSeriesT_co],
|
| 339 |
+
Protocol[EagerSeriesT_co, NativeSeriesT_co],
|
| 340 |
+
): ...
|
| 341 |
+
|
| 342 |
+
|
| 343 |
+
# mypy says: `Covariant type variable "_CountsT_co" used in protocol where invariant one is expected`
|
| 344 |
+
class EagerSeriesHist(Protocol[NativeSeriesT, _CountsT_co]): # type: ignore[misc]
|
| 345 |
+
_series: EagerSeries[NativeSeriesT]
|
| 346 |
+
_breakpoint: bool
|
| 347 |
+
_data: HistData[NativeSeriesT, _CountsT_co]
|
| 348 |
+
|
| 349 |
+
@property
|
| 350 |
+
def native(self) -> NativeSeriesT:
|
| 351 |
+
return self._series.native
|
| 352 |
+
|
| 353 |
+
@classmethod
|
| 354 |
+
def from_series(
|
| 355 |
+
cls, series: EagerSeries[NativeSeriesT], *, include_breakpoint: bool
|
| 356 |
+
) -> Self:
|
| 357 |
+
obj = cls.__new__(cls)
|
| 358 |
+
obj._series = series
|
| 359 |
+
obj._breakpoint = include_breakpoint
|
| 360 |
+
return obj
|
| 361 |
+
|
| 362 |
+
def to_frame(self) -> EagerDataFrameAny: ...
|
| 363 |
+
def _linear_space( # NOTE: Roughly `pl.linear_space`
|
| 364 |
+
self,
|
| 365 |
+
start: float,
|
| 366 |
+
end: float,
|
| 367 |
+
num_samples: int,
|
| 368 |
+
*,
|
| 369 |
+
closed: Literal["both", "none"] = "both",
|
| 370 |
+
) -> _1DArray: ...
|
| 371 |
+
|
| 372 |
+
# NOTE: *Could* be handled at narwhals-level
|
| 373 |
+
def is_empty_series(self) -> bool: ...
|
| 374 |
+
|
| 375 |
+
# NOTE: **Should** be handled at narwhals-level
|
| 376 |
+
def data_empty(self) -> HistData[NativeSeriesT, _CountsT_co]:
|
| 377 |
+
return {"breakpoint": [], "count": []} if self._breakpoint else {"count": []}
|
| 378 |
+
|
| 379 |
+
# NOTE: *Could* be handled at narwhals-level, **iff** we add `nw.repeat`, `nw.linear_space`
|
| 380 |
+
# See https://github.com/narwhals-dev/narwhals/pull/2839#discussion_r2215630696
|
| 381 |
+
def series_empty(
|
| 382 |
+
self, arg: int | list[float], /
|
| 383 |
+
) -> HistData[NativeSeriesT, _CountsT_co]: ...
|
| 384 |
+
|
| 385 |
+
def with_bins(self, bins: list[float], /) -> Self:
|
| 386 |
+
if len(bins) <= 1:
|
| 387 |
+
self._data = self.data_empty()
|
| 388 |
+
elif self.is_empty_series():
|
| 389 |
+
self._data = self.series_empty(bins)
|
| 390 |
+
else:
|
| 391 |
+
self._data = self._calculate_hist(bins)
|
| 392 |
+
return self
|
| 393 |
+
|
| 394 |
+
def with_bin_count(self, bin_count: int, /) -> Self:
|
| 395 |
+
if bin_count == 0:
|
| 396 |
+
self._data = self.data_empty()
|
| 397 |
+
elif self.is_empty_series():
|
| 398 |
+
self._data = self.series_empty(bin_count)
|
| 399 |
+
else:
|
| 400 |
+
self._data = self._calculate_hist(self._calculate_bins(bin_count))
|
| 401 |
+
return self
|
| 402 |
+
|
| 403 |
+
def _calculate_breakpoint(self, arg: int | list[float], /) -> list[float] | _1DArray:
|
| 404 |
+
bins = self._linear_space(0, 1, arg + 1) if isinstance(arg, int) else arg
|
| 405 |
+
return bins[1:]
|
| 406 |
+
|
| 407 |
+
def _calculate_bins(self, bin_count: int) -> _1DArray: ...
|
| 408 |
+
def _calculate_hist(
|
| 409 |
+
self, bins: list[float] | _1DArray
|
| 410 |
+
) -> HistData[NativeSeriesT, _CountsT_co]: ...
|
shared/package-files/d1/d123e0b4c2614f680808b58cca0c140ba187494b2c8bcf8c604c7eb739c70882/blob
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# created by tools/loadICU.tcl -- do not edit
|
| 2 |
+
namespace eval ::tcl::clock {
|
| 3 |
+
::msgcat::mcset zh_HK DAYS_OF_WEEK_ABBREV [list \
|
| 4 |
+
"\u65e5"\
|
| 5 |
+
"\u4e00"\
|
| 6 |
+
"\u4e8c"\
|
| 7 |
+
"\u4e09"\
|
| 8 |
+
"\u56db"\
|
| 9 |
+
"\u4e94"\
|
| 10 |
+
"\u516d"]
|
| 11 |
+
::msgcat::mcset zh_HK MONTHS_ABBREV [list \
|
| 12 |
+
"1\u6708"\
|
| 13 |
+
"2\u6708"\
|
| 14 |
+
"3\u6708"\
|
| 15 |
+
"4\u6708"\
|
| 16 |
+
"5\u6708"\
|
| 17 |
+
"6\u6708"\
|
| 18 |
+
"7\u6708"\
|
| 19 |
+
"8\u6708"\
|
| 20 |
+
"9\u6708"\
|
| 21 |
+
"10\u6708"\
|
| 22 |
+
"11\u6708"\
|
| 23 |
+
"12\u6708"\
|
| 24 |
+
""]
|
| 25 |
+
::msgcat::mcset zh_HK DATE_FORMAT "%Y\u5e74%m\u6708%e\u65e5"
|
| 26 |
+
::msgcat::mcset zh_HK TIME_FORMAT_12 "%P%I:%M:%S"
|
| 27 |
+
::msgcat::mcset zh_HK DATE_TIME_FORMAT "%Y\u5e74%m\u6708%e\u65e5 %P%I:%M:%S %z"
|
| 28 |
+
}
|
shared/package-files/d1/d12457044da126028937f45fe199f4d282970bf4e46b779f3d6338ef383a0686/blob
ADDED
|
@@ -0,0 +1,154 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#!/usr/bin/env python3
|
| 2 |
+
import os
|
| 3 |
+
import sys
|
| 4 |
+
import tempfile
|
| 5 |
+
|
| 6 |
+
|
| 7 |
+
def run_command(cmd):
|
| 8 |
+
print('Running %r:' % (cmd))
|
| 9 |
+
os.system(cmd)
|
| 10 |
+
print('------')
|
| 11 |
+
|
| 12 |
+
|
| 13 |
+
def run():
|
| 14 |
+
_path = os.getcwd()
|
| 15 |
+
os.chdir(tempfile.gettempdir())
|
| 16 |
+
print('------')
|
| 17 |
+
print('os.name=%r' % (os.name))
|
| 18 |
+
print('------')
|
| 19 |
+
print('sys.platform=%r' % (sys.platform))
|
| 20 |
+
print('------')
|
| 21 |
+
print('sys.version:')
|
| 22 |
+
print(sys.version)
|
| 23 |
+
print('------')
|
| 24 |
+
print('sys.prefix:')
|
| 25 |
+
print(sys.prefix)
|
| 26 |
+
print('------')
|
| 27 |
+
print('sys.path=%r' % (':'.join(sys.path)))
|
| 28 |
+
print('------')
|
| 29 |
+
|
| 30 |
+
try:
|
| 31 |
+
import numpy
|
| 32 |
+
has_newnumpy = 1
|
| 33 |
+
except ImportError as e:
|
| 34 |
+
print('Failed to import new numpy:', e)
|
| 35 |
+
has_newnumpy = 0
|
| 36 |
+
|
| 37 |
+
try:
|
| 38 |
+
from numpy.f2py import f2py2e
|
| 39 |
+
has_f2py2e = 1
|
| 40 |
+
except ImportError as e:
|
| 41 |
+
print('Failed to import f2py2e:', e)
|
| 42 |
+
has_f2py2e = 0
|
| 43 |
+
|
| 44 |
+
try:
|
| 45 |
+
import numpy.distutils
|
| 46 |
+
has_numpy_distutils = 2
|
| 47 |
+
except ImportError:
|
| 48 |
+
try:
|
| 49 |
+
import numpy_distutils
|
| 50 |
+
has_numpy_distutils = 1
|
| 51 |
+
except ImportError as e:
|
| 52 |
+
print('Failed to import numpy_distutils:', e)
|
| 53 |
+
has_numpy_distutils = 0
|
| 54 |
+
|
| 55 |
+
if has_newnumpy:
|
| 56 |
+
try:
|
| 57 |
+
print('Found new numpy version %r in %s' %
|
| 58 |
+
(numpy.__version__, numpy.__file__))
|
| 59 |
+
except Exception as msg:
|
| 60 |
+
print('error:', msg)
|
| 61 |
+
print('------')
|
| 62 |
+
|
| 63 |
+
if has_f2py2e:
|
| 64 |
+
try:
|
| 65 |
+
print('Found f2py2e version %r in %s' %
|
| 66 |
+
(f2py2e.__version__.version, f2py2e.__file__))
|
| 67 |
+
except Exception as msg:
|
| 68 |
+
print('error:', msg)
|
| 69 |
+
print('------')
|
| 70 |
+
|
| 71 |
+
if has_numpy_distutils:
|
| 72 |
+
try:
|
| 73 |
+
if has_numpy_distutils == 2:
|
| 74 |
+
print('Found numpy.distutils version %r in %r' % (
|
| 75 |
+
numpy.distutils.__version__,
|
| 76 |
+
numpy.distutils.__file__))
|
| 77 |
+
else:
|
| 78 |
+
print('Found numpy_distutils version %r in %r' % (
|
| 79 |
+
numpy_distutils.numpy_distutils_version.numpy_distutils_version,
|
| 80 |
+
numpy_distutils.__file__))
|
| 81 |
+
print('------')
|
| 82 |
+
except Exception as msg:
|
| 83 |
+
print('error:', msg)
|
| 84 |
+
print('------')
|
| 85 |
+
try:
|
| 86 |
+
if has_numpy_distutils == 1:
|
| 87 |
+
print(
|
| 88 |
+
'Importing numpy_distutils.command.build_flib ...', end=' ')
|
| 89 |
+
import numpy_distutils.command.build_flib as build_flib
|
| 90 |
+
print('ok')
|
| 91 |
+
print('------')
|
| 92 |
+
try:
|
| 93 |
+
print(
|
| 94 |
+
'Checking availability of supported Fortran compilers:')
|
| 95 |
+
for compiler_class in build_flib.all_compilers:
|
| 96 |
+
compiler_class(verbose=1).is_available()
|
| 97 |
+
print('------')
|
| 98 |
+
except Exception as msg:
|
| 99 |
+
print('error:', msg)
|
| 100 |
+
print('------')
|
| 101 |
+
except Exception as msg:
|
| 102 |
+
print(
|
| 103 |
+
'error:', msg, '(ignore it, build_flib is obsolute for numpy.distutils 0.2.2 and up)')
|
| 104 |
+
print('------')
|
| 105 |
+
try:
|
| 106 |
+
if has_numpy_distutils == 2:
|
| 107 |
+
print('Importing numpy.distutils.fcompiler ...', end=' ')
|
| 108 |
+
import numpy.distutils.fcompiler as fcompiler
|
| 109 |
+
else:
|
| 110 |
+
print('Importing numpy_distutils.fcompiler ...', end=' ')
|
| 111 |
+
import numpy_distutils.fcompiler as fcompiler
|
| 112 |
+
print('ok')
|
| 113 |
+
print('------')
|
| 114 |
+
try:
|
| 115 |
+
print('Checking availability of supported Fortran compilers:')
|
| 116 |
+
fcompiler.show_fcompilers()
|
| 117 |
+
print('------')
|
| 118 |
+
except Exception as msg:
|
| 119 |
+
print('error:', msg)
|
| 120 |
+
print('------')
|
| 121 |
+
except Exception as msg:
|
| 122 |
+
print('error:', msg)
|
| 123 |
+
print('------')
|
| 124 |
+
try:
|
| 125 |
+
if has_numpy_distutils == 2:
|
| 126 |
+
print('Importing numpy.distutils.cpuinfo ...', end=' ')
|
| 127 |
+
from numpy.distutils.cpuinfo import cpuinfo
|
| 128 |
+
print('ok')
|
| 129 |
+
print('------')
|
| 130 |
+
else:
|
| 131 |
+
try:
|
| 132 |
+
print(
|
| 133 |
+
'Importing numpy_distutils.command.cpuinfo ...', end=' ')
|
| 134 |
+
from numpy_distutils.command.cpuinfo import cpuinfo
|
| 135 |
+
print('ok')
|
| 136 |
+
print('------')
|
| 137 |
+
except Exception as msg:
|
| 138 |
+
print('error:', msg, '(ignore it)')
|
| 139 |
+
print('Importing numpy_distutils.cpuinfo ...', end=' ')
|
| 140 |
+
from numpy_distutils.cpuinfo import cpuinfo
|
| 141 |
+
print('ok')
|
| 142 |
+
print('------')
|
| 143 |
+
cpu = cpuinfo()
|
| 144 |
+
print('CPU information:', end=' ')
|
| 145 |
+
for name in dir(cpuinfo):
|
| 146 |
+
if name[0] == '_' and name[1] != '_' and getattr(cpu, name[1:])():
|
| 147 |
+
print(name[1:], end=' ')
|
| 148 |
+
print('------')
|
| 149 |
+
except Exception as msg:
|
| 150 |
+
print('error:', msg)
|
| 151 |
+
print('------')
|
| 152 |
+
os.chdir(_path)
|
| 153 |
+
if __name__ == "__main__":
|
| 154 |
+
run()
|
shared/package-files/d1/d12495f2a5e115f03cf93f73bee59ab084fc6cd6cf5cb517e19419a740a80f39/blob
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Importable modules that enable the use of experimental features or estimators.
|
| 2 |
+
|
| 3 |
+
.. warning::
|
| 4 |
+
|
| 5 |
+
The features and estimators that are experimental aren't subject to
|
| 6 |
+
deprecation cycles. Use them at your own risks!
|
| 7 |
+
"""
|
| 8 |
+
|
| 9 |
+
# Authors: The scikit-learn developers
|
| 10 |
+
# SPDX-License-Identifier: BSD-3-Clause
|
shared/package-files/d1/d1284cb753ddb8fdcafa7db41e3c6159140c39128ffeae2bb08458796ce80d1d/blob
ADDED
|
@@ -0,0 +1,226 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Licensed to the Apache Software Foundation (ASF) under one
|
| 2 |
+
// or more contributor license agreements. See the NOTICE file
|
| 3 |
+
// distributed with this work for additional information
|
| 4 |
+
// regarding copyright ownership. The ASF licenses this file
|
| 5 |
+
// to you under the Apache License, Version 2.0 (the
|
| 6 |
+
// "License"); you may not use this file except in compliance
|
| 7 |
+
// with the License. You may obtain a copy of the License at
|
| 8 |
+
//
|
| 9 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
//
|
| 11 |
+
// Unless required by applicable law or agreed to in writing,
|
| 12 |
+
// software distributed under the License is distributed on an
|
| 13 |
+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 14 |
+
// KIND, either express or implied. See the License for the
|
| 15 |
+
// specific language governing permissions and limitations
|
| 16 |
+
// under the License.
|
| 17 |
+
|
| 18 |
+
#pragma once
|
| 19 |
+
|
| 20 |
+
#include <cstdint>
|
| 21 |
+
#include <memory>
|
| 22 |
+
#include <string>
|
| 23 |
+
#include <unordered_map>
|
| 24 |
+
#include <vector>
|
| 25 |
+
|
| 26 |
+
#include "arrow/csv/invalid_row.h"
|
| 27 |
+
#include "arrow/csv/type_fwd.h"
|
| 28 |
+
#include "arrow/io/interfaces.h"
|
| 29 |
+
#include "arrow/status.h"
|
| 30 |
+
#include "arrow/util/visibility.h"
|
| 31 |
+
|
| 32 |
+
namespace arrow {
|
| 33 |
+
|
| 34 |
+
class DataType;
|
| 35 |
+
class TimestampParser;
|
| 36 |
+
|
| 37 |
+
namespace csv {
|
| 38 |
+
|
| 39 |
+
// Silly workaround for https://github.com/michaeljones/breathe/issues/453
|
| 40 |
+
constexpr char kDefaultEscapeChar = '\\';
|
| 41 |
+
|
| 42 |
+
struct ARROW_EXPORT ParseOptions {
|
| 43 |
+
// Parsing options
|
| 44 |
+
|
| 45 |
+
/// Field delimiter
|
| 46 |
+
char delimiter = ',';
|
| 47 |
+
/// Whether quoting is used
|
| 48 |
+
bool quoting = true;
|
| 49 |
+
/// Quoting character (if `quoting` is true)
|
| 50 |
+
char quote_char = '"';
|
| 51 |
+
/// Whether a quote inside a value is double-quoted
|
| 52 |
+
bool double_quote = true;
|
| 53 |
+
/// Whether escaping is used
|
| 54 |
+
bool escaping = false;
|
| 55 |
+
/// Escaping character (if `escaping` is true)
|
| 56 |
+
char escape_char = kDefaultEscapeChar;
|
| 57 |
+
/// Whether values are allowed to contain CR (0x0d) and LF (0x0a) characters
|
| 58 |
+
bool newlines_in_values = false;
|
| 59 |
+
/// Whether empty lines are ignored. If false, an empty line represents
|
| 60 |
+
/// a single empty value (assuming a one-column CSV file).
|
| 61 |
+
bool ignore_empty_lines = true;
|
| 62 |
+
/// A handler function for rows which do not have the correct number of columns
|
| 63 |
+
InvalidRowHandler invalid_row_handler;
|
| 64 |
+
|
| 65 |
+
/// Create parsing options with default values
|
| 66 |
+
static ParseOptions Defaults();
|
| 67 |
+
|
| 68 |
+
/// \brief Test that all set options are valid
|
| 69 |
+
Status Validate() const;
|
| 70 |
+
};
|
| 71 |
+
|
| 72 |
+
struct ARROW_EXPORT ConvertOptions {
|
| 73 |
+
// Conversion options
|
| 74 |
+
|
| 75 |
+
/// Whether to check UTF8 validity of string columns
|
| 76 |
+
bool check_utf8 = true;
|
| 77 |
+
/// Optional per-column types (disabling type inference on those columns)
|
| 78 |
+
std::unordered_map<std::string, std::shared_ptr<DataType>> column_types;
|
| 79 |
+
/// Recognized spellings for null values
|
| 80 |
+
std::vector<std::string> null_values;
|
| 81 |
+
/// Recognized spellings for boolean true values
|
| 82 |
+
std::vector<std::string> true_values;
|
| 83 |
+
/// Recognized spellings for boolean false values
|
| 84 |
+
std::vector<std::string> false_values;
|
| 85 |
+
|
| 86 |
+
/// Whether string / binary columns can have null values.
|
| 87 |
+
///
|
| 88 |
+
/// If true, then strings in "null_values" are considered null for string columns.
|
| 89 |
+
/// If false, then all strings are valid string values.
|
| 90 |
+
bool strings_can_be_null = false;
|
| 91 |
+
|
| 92 |
+
/// Whether quoted values can be null.
|
| 93 |
+
///
|
| 94 |
+
/// If true, then strings in "null_values" are also considered null when they
|
| 95 |
+
/// appear quoted in the CSV file. Otherwise, quoted values are never considered null.
|
| 96 |
+
bool quoted_strings_can_be_null = true;
|
| 97 |
+
|
| 98 |
+
/// Whether to try to automatically dict-encode string / binary data.
|
| 99 |
+
/// If true, then when type inference detects a string or binary column,
|
| 100 |
+
/// it is dict-encoded up to `auto_dict_max_cardinality` distinct values
|
| 101 |
+
/// (per chunk), after which it switches to regular encoding.
|
| 102 |
+
///
|
| 103 |
+
/// This setting is ignored for non-inferred columns (those in `column_types`).
|
| 104 |
+
bool auto_dict_encode = false;
|
| 105 |
+
int32_t auto_dict_max_cardinality = 50;
|
| 106 |
+
|
| 107 |
+
/// Decimal point character for floating-point and decimal data
|
| 108 |
+
char decimal_point = '.';
|
| 109 |
+
|
| 110 |
+
// XXX Should we have a separate FilterOptions?
|
| 111 |
+
|
| 112 |
+
/// If non-empty, indicates the names of columns from the CSV file that should
|
| 113 |
+
/// be actually read and converted (in the vector's order).
|
| 114 |
+
/// Columns not in this vector will be ignored.
|
| 115 |
+
std::vector<std::string> include_columns;
|
| 116 |
+
/// If false, columns in `include_columns` but not in the CSV file will error out.
|
| 117 |
+
/// If true, columns in `include_columns` but not in the CSV file will produce
|
| 118 |
+
/// a column of nulls (whose type is selected using `column_types`,
|
| 119 |
+
/// or null by default)
|
| 120 |
+
/// This option is ignored if `include_columns` is empty.
|
| 121 |
+
bool include_missing_columns = false;
|
| 122 |
+
|
| 123 |
+
/// User-defined timestamp parsers, using the virtual parser interface in
|
| 124 |
+
/// arrow/util/value_parsing.h. More than one parser can be specified, and
|
| 125 |
+
/// the CSV conversion logic will try parsing values starting from the
|
| 126 |
+
/// beginning of this vector. If no parsers are specified, we use the default
|
| 127 |
+
/// built-in ISO-8601 parser.
|
| 128 |
+
std::vector<std::shared_ptr<TimestampParser>> timestamp_parsers;
|
| 129 |
+
|
| 130 |
+
/// Create conversion options with default values, including conventional
|
| 131 |
+
/// values for `null_values`, `true_values` and `false_values`
|
| 132 |
+
static ConvertOptions Defaults();
|
| 133 |
+
|
| 134 |
+
/// \brief Test that all set options are valid
|
| 135 |
+
Status Validate() const;
|
| 136 |
+
};
|
| 137 |
+
|
| 138 |
+
struct ARROW_EXPORT ReadOptions {
|
| 139 |
+
// Reader options
|
| 140 |
+
|
| 141 |
+
/// Whether to use the global CPU thread pool
|
| 142 |
+
bool use_threads = true;
|
| 143 |
+
|
| 144 |
+
/// \brief Block size we request from the IO layer.
|
| 145 |
+
///
|
| 146 |
+
/// This will determine multi-threading granularity as well as
|
| 147 |
+
/// the size of individual record batches.
|
| 148 |
+
/// Minimum valid value for block size is 1
|
| 149 |
+
int32_t block_size = 1 << 20; // 1 MB
|
| 150 |
+
|
| 151 |
+
/// Number of header rows to skip (not including the row of column names, if any)
|
| 152 |
+
int32_t skip_rows = 0;
|
| 153 |
+
|
| 154 |
+
/// Number of rows to skip after the column names are read, if any
|
| 155 |
+
int32_t skip_rows_after_names = 0;
|
| 156 |
+
|
| 157 |
+
/// Column names for the target table.
|
| 158 |
+
/// If empty, fall back on autogenerate_column_names.
|
| 159 |
+
std::vector<std::string> column_names;
|
| 160 |
+
|
| 161 |
+
/// Whether to autogenerate column names if `column_names` is empty.
|
| 162 |
+
/// If true, column names will be of the form "f0", "f1"...
|
| 163 |
+
/// If false, column names will be read from the first CSV row after `skip_rows`.
|
| 164 |
+
bool autogenerate_column_names = false;
|
| 165 |
+
|
| 166 |
+
/// Create read options with default values
|
| 167 |
+
static ReadOptions Defaults();
|
| 168 |
+
|
| 169 |
+
/// \brief Test that all set options are valid
|
| 170 |
+
Status Validate() const;
|
| 171 |
+
};
|
| 172 |
+
|
| 173 |
+
/// \brief Quoting style for CSV writing
|
| 174 |
+
enum class ARROW_EXPORT QuotingStyle {
|
| 175 |
+
/// Only enclose values in quotes which need them, because their CSV rendering can
|
| 176 |
+
/// contain quotes itself (e.g. strings or binary values)
|
| 177 |
+
Needed,
|
| 178 |
+
/// Enclose all valid values in quotes. Nulls are not quoted. May cause readers to
|
| 179 |
+
/// interpret all values as strings if schema is inferred.
|
| 180 |
+
AllValid,
|
| 181 |
+
/// Do not enclose any values in quotes. Prevents values from containing quotes ("),
|
| 182 |
+
/// cell delimiters (,) or line endings (\\r, \\n), (following RFC4180). If values
|
| 183 |
+
/// contain these characters, an error is caused when attempting to write.
|
| 184 |
+
None
|
| 185 |
+
};
|
| 186 |
+
|
| 187 |
+
struct ARROW_EXPORT WriteOptions {
|
| 188 |
+
/// Whether to write an initial header line with column names
|
| 189 |
+
bool include_header = true;
|
| 190 |
+
|
| 191 |
+
/// \brief Maximum number of rows processed at a time
|
| 192 |
+
///
|
| 193 |
+
/// The CSV writer converts and writes data in batches of N rows.
|
| 194 |
+
/// This number can impact performance.
|
| 195 |
+
int32_t batch_size = 1024;
|
| 196 |
+
|
| 197 |
+
/// Field delimiter
|
| 198 |
+
char delimiter = ',';
|
| 199 |
+
|
| 200 |
+
/// \brief The string to write for null values. Quotes are not allowed in this string.
|
| 201 |
+
std::string null_string;
|
| 202 |
+
|
| 203 |
+
/// \brief IO context for writing.
|
| 204 |
+
io::IOContext io_context;
|
| 205 |
+
|
| 206 |
+
/// \brief The end of line character to use for ending rows
|
| 207 |
+
std::string eol = "\n";
|
| 208 |
+
|
| 209 |
+
/// \brief Quoting style
|
| 210 |
+
QuotingStyle quoting_style = QuotingStyle::Needed;
|
| 211 |
+
|
| 212 |
+
/// \brief Quoting style of header
|
| 213 |
+
///
|
| 214 |
+
/// Note that `QuotingStyle::Needed` and `QuotingStyle::AllValid` have the same
|
| 215 |
+
/// effect of quoting all column names.
|
| 216 |
+
QuotingStyle quoting_header = QuotingStyle::Needed;
|
| 217 |
+
|
| 218 |
+
/// Create write options with default values
|
| 219 |
+
static WriteOptions Defaults();
|
| 220 |
+
|
| 221 |
+
/// \brief Test that all set options are valid
|
| 222 |
+
Status Validate() const;
|
| 223 |
+
};
|
| 224 |
+
|
| 225 |
+
} // namespace csv
|
| 226 |
+
} // namespace arrow
|
shared/package-files/d1/d12a142fcd22c0b3c7d8cf924e86421e5fde381cf52c77bf10b098e5cdcafef7/blob
ADDED
|
Binary file (3.45 kB). View file
|
|
|
shared/package-files/d1/d12b3cc66af3f42a8ebe63e1c91d24f92c6237b6a93a3702938dffabd812d77b/blob
ADDED
|
@@ -0,0 +1,74 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Exception classes raised by urllib.
|
| 2 |
+
|
| 3 |
+
The base exception class is URLError, which inherits from OSError. It
|
| 4 |
+
doesn't define any behavior of its own, but is the base class for all
|
| 5 |
+
exceptions defined in this package.
|
| 6 |
+
|
| 7 |
+
HTTPError is an exception class that is also a valid HTTP response
|
| 8 |
+
instance. It behaves this way because HTTP protocol errors are valid
|
| 9 |
+
responses, with a status code, headers, and a body. In some contexts,
|
| 10 |
+
an application may want to handle an exception like a regular
|
| 11 |
+
response.
|
| 12 |
+
"""
|
| 13 |
+
import io
|
| 14 |
+
import urllib.response
|
| 15 |
+
|
| 16 |
+
__all__ = ['URLError', 'HTTPError', 'ContentTooShortError']
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
class URLError(OSError):
|
| 20 |
+
# URLError is a sub-type of OSError, but it doesn't share any of
|
| 21 |
+
# the implementation. need to override __init__ and __str__.
|
| 22 |
+
# It sets self.args for compatibility with other OSError
|
| 23 |
+
# subclasses, but args doesn't have the typical format with errno in
|
| 24 |
+
# slot 0 and strerror in slot 1. This may be better than nothing.
|
| 25 |
+
def __init__(self, reason, filename=None):
|
| 26 |
+
self.args = reason,
|
| 27 |
+
self.reason = reason
|
| 28 |
+
if filename is not None:
|
| 29 |
+
self.filename = filename
|
| 30 |
+
|
| 31 |
+
def __str__(self):
|
| 32 |
+
return '<urlopen error %s>' % self.reason
|
| 33 |
+
|
| 34 |
+
|
| 35 |
+
class HTTPError(URLError, urllib.response.addinfourl):
|
| 36 |
+
"""Raised when HTTP error occurs, but also acts like non-error return"""
|
| 37 |
+
__super_init = urllib.response.addinfourl.__init__
|
| 38 |
+
|
| 39 |
+
def __init__(self, url, code, msg, hdrs, fp):
|
| 40 |
+
self.code = code
|
| 41 |
+
self.msg = msg
|
| 42 |
+
self.hdrs = hdrs
|
| 43 |
+
self.fp = fp
|
| 44 |
+
self.filename = url
|
| 45 |
+
if fp is None:
|
| 46 |
+
fp = io.BytesIO()
|
| 47 |
+
self.__super_init(fp, hdrs, url, code)
|
| 48 |
+
|
| 49 |
+
def __str__(self):
|
| 50 |
+
return 'HTTP Error %s: %s' % (self.code, self.msg)
|
| 51 |
+
|
| 52 |
+
def __repr__(self):
|
| 53 |
+
return '<HTTPError %s: %r>' % (self.code, self.msg)
|
| 54 |
+
|
| 55 |
+
# since URLError specifies a .reason attribute, HTTPError should also
|
| 56 |
+
# provide this attribute. See issue13211 for discussion.
|
| 57 |
+
@property
|
| 58 |
+
def reason(self):
|
| 59 |
+
return self.msg
|
| 60 |
+
|
| 61 |
+
@property
|
| 62 |
+
def headers(self):
|
| 63 |
+
return self.hdrs
|
| 64 |
+
|
| 65 |
+
@headers.setter
|
| 66 |
+
def headers(self, headers):
|
| 67 |
+
self.hdrs = headers
|
| 68 |
+
|
| 69 |
+
|
| 70 |
+
class ContentTooShortError(URLError):
|
| 71 |
+
"""Exception raised when downloaded size does not match content-length."""
|
| 72 |
+
def __init__(self, message, content):
|
| 73 |
+
URLError.__init__(self, message)
|
| 74 |
+
self.content = content
|
shared/package-files/d1/d12c79c8bf03f29c980d74c80590284e24ac4691bf789cfcb83dadb55ae49615/blob
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
8.278938049410748956e-01 9.035293984476246987e-01 1.862188994679486731e-01 8.921151312310462433e-01 2.061859119379583216e-02 3.440636727385729676e-01 1.533779912830328662e-01 5.701372300009802663e-01 5.510020730211558915e-01 1.792362258426003496e-01 8.086175120876580857e-01 6.115487184317183189e-01 1.233471787164852618e-02 1.441643531871039663e-03 4.044309209045688913e-01 3.561398959499905148e-01 1.281985712929750720e-01 8.663300833847481508e-01 8.696027786291581352e-01 3.611727370363766454e-01 5.283537658772616830e-01 1.440241088090119526e-01 3.112457227138950566e-01 6.031280796897889873e-01 9.230324792742518047e-01 2.332121881136874908e-01 3.192652267403439659e-02 3.466206294995559656e-01 2.988687728046366399e-01 5.116749542048093513e-02 2.584975830914494344e-01 4.302023478042227289e-01 8.003972751713522849e-01 9.364931911368097328e-01 9.737098649964673891e-01 4.718038453972229762e-01 4.526591686607864817e-01 1.056485678520797666e-01 5.883019714285405710e-01 3.846092237676981274e-01 6.461500053435473845e-01 1.013239729848824933e-01 1.216151561651189761e-01 5.159668929484659827e-01 8.452074473510227115e-01 9.885170962247968873e-01 7.623883073490128615e-01 2.291163243615434997e-02 5.775530980802381364e-01 7.820699896828091635e-01 8.239186345842965942e-01 3.391800105260227571e-01 9.546318451614538292e-01 3.789677917867695367e-01 4.526533399649290690e-02 8.366786473238587707e-01 3.082636811049858094e-01 1.173936820793450853e-01 7.631994969169442200e-02 2.997416650722183329e-01 5.795208655160232203e-01 3.942350892542011431e-01 1.175126383297261379e-01 4.928232513950027149e-01 9.421293996225950096e-01 8.365391053841342295e-02 6.868059693571844093e-01 3.589527962429440722e-01 7.592939427166059962e-01 5.623849466131448649e-01 2.110746828032050715e-01 9.824683704668600859e-01 2.661230142246236996e-01 6.162272315007123469e-01 5.023254536607497656e-01 5.202854476669782624e-02 5.835090668842095596e-01 7.864642118889143552e-01 2.504012386867506823e-01 6.728308641135989365e-01 4.610793534576096420e-01 4.820508770515909980e-01 9.720403251022265989e-01 3.100069285263498120e-01 7.681017126461753275e-01 7.956539306007082146e-02 2.593389637887737464e-01 1.137852590403054531e-01 3.885303073284454012e-01 8.599094660075957686e-01 5.215167875918280682e-02 1.620908248572288102e-01 1.859236090457663249e-01 6.247716512610480555e-01 3.415128495520775020e-01 7.034903368378029320e-01 6.037564640019568163e-01 2.338969434423310290e-01 1.002104885609900187e-02 7.866058403969036217e-01
|
| 2 |
+
8.033694116033356369e-01 8.653264545544031572e-01 7.468340410754038539e-01 6.362430919910603278e-01 5.120006306625468628e-02 9.503348372633585450e-01 4.697732609626817935e-01 4.221305288459429317e-01 3.153452119838391354e-01 2.991014843442657556e-01 1.190667967280257811e-01 3.486567714509342109e-01 8.289493649885054660e-01 8.454811050800014049e-01 9.149673018211901265e-01 7.708707837193897738e-01 2.640157732122547785e-01 2.107897022189605396e-01 4.207633055054439408e-01 6.719500284654699174e-01 1.458031684893063007e-01 1.800412735886125493e-02 8.402733435220011149e-02 4.206760156883160295e-02 1.376933515041314227e-01 1.716717341022133692e-01 1.788220727652158892e-01 8.224310433402118869e-01 7.729093666867475898e-01 2.064223621025984556e-01 9.592092036227207741e-01 8.312490243754996344e-01 6.673289360369902834e-01 4.632847903690773261e-02 7.643954098358983762e-01 9.359341525615098023e-01 1.914966319163026176e-01 4.536590469402868031e-01 8.640836016538007147e-01 3.941529178175462444e-02 5.602101995205478469e-01 9.263806161941660067e-01 1.555995325944817820e-01 6.172208102950116348e-01 6.335576752812099866e-01 9.766975460368043649e-02 4.475795689539874278e-02 3.248842796104995934e-01 5.700377122149502540e-01 9.066962967256807504e-01 5.458460621505676347e-01 6.833401285581487405e-01 2.887244409544044155e-01 1.316338647016834784e-01 2.325673305245992140e-01 4.150121963188406760e-01 3.834845466366055833e-01 8.149365773968725302e-01 1.867003849450201702e-01 3.170322173543018707e-01 6.832093662682684476e-01 1.729728518929105618e-01 9.236557359702636250e-01 9.152941252150086360e-01 7.224879983096620384e-01 8.557920626598064517e-01 5.344883059251644974e-01 4.876873274449112783e-01 8.308277804506420949e-01 3.916624489322212410e-01 3.459695122273966916e-01 4.033512499027409604e-01 6.555726444913008155e-01 7.138452409380238173e-01 1.683937314599968094e-01 1.769382143486440961e-01 7.588683655178136700e-01 3.750589892880819010e-01 7.525176245126207197e-01 6.083961152538303052e-01 1.145972309907993258e-01 6.239614485809552580e-01 1.307655482065895880e-01 8.530458750670916190e-01 4.801602070124768584e-01 8.168122189863546989e-02 3.793139622744635675e-01 1.496986997776840189e-01 7.129023878302899186e-01 6.830979237438047358e-01 7.635375943876505644e-01 1.824004963251233402e-01 5.764695848992339444e-01 8.865113248731604223e-01 5.784337085544002388e-01 9.700026628755119562e-01 7.318207347905059112e-01 3.851401393936705331e-01 1.774291851193399161e-01 9.763423229242296220e-01
|
| 3 |
+
9.287178470949695175e-01 1.748282433617460718e-01 9.238531711586964734e-01 8.291274445125006443e-01 9.513259272578692416e-01 7.486316801165745494e-01 6.257378457524477300e-01 2.062711693536473101e-01 3.970721244184766130e-01 2.738325225026445597e-01 8.735038948299954642e-01 5.415282140033768066e-01 5.176317904298315398e-01 5.347036264518250093e-01 7.482056965410627258e-01 4.140672582824351800e-01 8.709067272363142376e-01 9.499605569181273079e-01 5.380266748336398619e-01 4.369252161707162241e-01 8.235722216228258397e-03 4.308187193646527691e-01 6.030581482859224129e-01 7.316831195156517920e-01 5.540499846834291420e-01 2.044203040111662872e-01 8.645251782981867583e-01 1.816095717570278545e-01 9.639119168018674966e-01 3.572031072322333634e-01 5.580226816834680248e-01 5.586629875016585478e-01 7.213854320902782780e-01 8.513998260042524580e-01 6.308764347277173723e-02 4.299855362100638567e-01 8.789303907444128150e-01 9.178850359236285783e-01 2.275205845091231582e-01 1.899395443939643213e-01 7.103070862773533944e-01 9.450015289553428399e-01 1.691856364522159595e-01 7.368719616877857925e-01 9.600189536623833231e-01 5.128846522932454244e-01 6.209162727118655578e-02 7.992250598838029907e-01 9.141050280518014937e-01 1.471297785256820978e-01 7.466162372930541524e-01 4.656107650642931084e-01 6.399324135161845728e-01 2.023617619481610230e-01 1.019104648900100996e-01 4.390693688536728700e-02 9.822620353006089600e-01 2.881951852926285529e-01 6.191575015960482098e-02 8.989580763251467932e-01 4.635958631890454429e-01 1.781973138114967270e-02 7.906911683818984571e-02 6.525270776225711167e-02 3.620583622807886925e-01 2.651673718940715796e-01 5.829372395929610651e-01 2.118159824373908595e-01 5.900287159143694504e-01 9.405929925178391215e-01 9.262415619063500971e-01 5.639581506302312475e-01 4.529556154689695635e-02 2.873819210518682166e-01 5.718545934306838996e-01 9.877670791317306742e-01 4.120364488714320927e-01 9.896078045634184583e-01 3.796586997026456523e-01 1.178183652203194098e-01 6.641068305236120795e-01 4.045960610587706618e-03 2.262690437428437340e-01 7.839938005832693957e-01 7.695391333937223743e-01 3.713918392552509884e-01 4.245533341514018399e-01 1.475072494020331915e-01 6.011975181419888514e-01 5.158174017998343741e-01 1.788706151398071764e-01 8.880707130134481986e-01 6.463351030474082659e-01 6.499920635615744624e-01 8.570273676455353318e-01 6.055019270899113515e-01 2.123561211054603159e-02 2.027688787664126968e-01 1.930834215328548487e-01 5.131906052747271518e-01
|
| 4 |
+
2.599990881903107010e-01 6.767857524909899336e-01 7.188217446352963558e-01 3.037178903357997672e-01 4.252381412838680541e-01 4.070924411439535984e-02 8.426710493038247485e-02 8.301517457289483426e-01 8.254603255702420705e-01 7.258533909453509514e-01 9.958706809470796451e-01 1.323408451651194584e-01 8.523995455245143571e-01 2.572405385832454705e-02 4.715363690065482727e-01 7.920130365690022378e-01 7.613745641534582775e-01 5.108305991695683002e-01 7.908714335912382376e-01 4.641131983754837043e-01 3.112627109831845873e-01 4.218013908715474436e-01 3.291577909008427394e-01 2.538715054071232213e-01 1.362470842487485401e-01 2.716429790290709745e-01 1.485325814161112534e-01 4.514539027544387517e-01 6.900835128673067365e-01 7.793407072946112457e-02 5.938024345270752624e-01 1.497853829906865553e-01 5.399567982652856424e-01 1.419209916759478496e-03 7.719776132867679497e-01 3.130795105576239523e-01 6.670071611167494030e-01 8.900596881158256979e-01 8.011158503301568645e-01 7.089295605187424520e-01 4.671116382997058114e-01 6.682965170673403899e-01 6.524835265739736823e-02 5.454288420771494783e-01 7.751910790556310049e-01 8.192595541387335256e-01 3.098855848167891835e-01 3.689971355659119601e-01 8.666507475054133769e-01 2.749042684253171220e-01 3.566565602478318775e-01 4.838173174723044978e-01 1.032975933616413489e-01 5.063065339610417492e-02 5.791168455729079900e-01 3.573337411289496668e-01 6.714098909652352898e-01 2.917057662433912846e-01 2.654964332620638467e-01 7.171804039048814694e-01 3.314488637898249657e-01 5.230399837442840649e-01 6.866534136026025692e-02 1.252966394621071178e-01 5.349397882659551184e-01 2.841423847455760709e-01 4.158473635710734362e-01 7.197062989831272128e-01 5.123869045047864113e-01 8.675622821594339840e-01 8.097441845042540054e-01 7.317178252133832439e-01 3.300847596465853462e-01 5.922311859141077273e-01 8.852619511417836318e-02 2.673412917259408994e-01 6.878259052441990651e-01 3.223000927116328462e-01 8.859387123976615319e-01 5.722722388300067742e-01 8.254877606669521750e-01 5.705299682290687624e-01 7.046478734972855262e-01 1.316324413616759559e-01 3.056358395675535800e-01 2.396516834600909140e-01 2.041201422493257311e-01 1.610755140653103989e-01 1.617012564641111538e-01 4.449920510036902144e-01 2.731012972755201274e-01 7.826874666257994662e-01 5.193612375350010746e-01 8.688804522977213729e-01 3.742157602758655610e-02 6.649628920608219307e-01 5.978149424619171315e-01 5.345645500553952711e-01 9.443202650415919441e-01 6.105837075491723498e-01
|
| 5 |
+
6.387761328141735584e-01 4.210087412162694109e-01 3.777306694964789324e-01 3.576349403292201634e-01 7.272699618880260619e-01 9.173392803607671731e-02 1.212535698300880593e-01 3.871229381194544183e-01 7.735150198351389284e-01 4.687200483013695962e-01 5.161778571874678923e-01 9.839646447226980674e-01 8.626932748911960713e-01 9.618485576577924245e-01 2.997996427525421170e-01 3.955404657388794654e-01 8.480126027102616870e-01 8.194992325050480808e-01 2.800213436873294492e-01 7.188391466620779324e-01 2.289766105875049584e-01 3.838547514028287644e-01 1.363553401061209369e-01 2.131328253542326134e-01 2.666779468144075960e-02 3.252883844200405994e-01 4.207860197469600605e-01 2.991365385037647595e-01 9.180779845534067229e-01 8.787338732192649937e-01 5.404510999105649471e-01 1.735493827761729335e-01 7.405224640747264386e-01 3.927355563629583157e-01 3.957109873399460298e-01 1.313029813325972128e-01 6.434498219738993274e-01 7.162213694578050127e-01 6.454998257494671821e-01 3.808124530008022424e-01 2.027201015737234435e-01 6.667632842770417900e-01 1.609491052365198405e-01 1.192413785409307536e-02 4.546773323526854815e-01 7.733541911050207940e-01 3.902525737195561284e-01 4.006023779897505133e-01 5.156517815815246930e-01 6.135685498584592112e-01 7.062153114980724844e-01 5.505858882117883324e-01 3.541308807182554919e-01 5.237151122342533771e-01 5.230649229131387745e-01 1.973541027697351957e-01 7.940327858595511712e-01 9.998588700623055603e-01 3.878271015153827994e-01 4.455006584967207139e-01 8.376414508056347907e-01 3.310833863524501597e-01 8.020469097392601832e-01 1.890327633084128989e-01 3.830289472395409511e-01 8.605040171046141051e-02 9.978185524023941433e-01 8.333890591892906263e-01 4.509013468741837061e-01 6.355778557686052599e-01 1.422515991097305088e-01 9.549891485963732940e-01 7.535776302868563148e-01 9.306005301880662106e-01 2.444330347211679522e-01 5.828218427569508142e-01 1.261938242968304591e-01 2.829188731405173352e-01 8.100246952078660190e-01 2.032739130996042975e-01 3.997268448390065565e-01 3.882777703107541667e-01 1.102505652624736765e-01 5.826634725328041498e-01 6.508734477956333864e-01 1.777287661702166011e-01 4.857051012052149286e-02 6.850537712379254351e-01 5.012281307761055071e-01 3.329154880061502286e-01 5.006261767216675374e-01 4.542081454976160115e-01 6.777801995399822532e-01 4.271303586474960445e-01 7.820470659692947413e-01 5.143462618485082904e-01 4.071273891563575997e-02 8.503383643856671226e-01 6.877485768345151795e-01 6.498843855014626580e-01
|
| 6 |
+
5.539512747016193117e-01 6.329206647391879548e-01 2.798533500321682688e-01 4.825977295850051307e-01 7.625297023172977751e-01 9.081309101427640362e-01 4.124792086535029600e-01 3.647019658319609059e-01 7.529595202332928228e-02 3.072404010876803593e-01 7.890673660964639957e-01 4.079781478915127657e-01 1.440519120695739064e-01 2.538968953804546791e-01 1.595028243568367143e-01 9.066545851872198636e-02 6.367601114674349416e-01 7.622263643880089479e-02 3.015728236404162654e-01 2.424070469873378375e-01 5.711440390241000475e-01 5.717001375511508998e-01 2.237853674032181939e-01 7.112101625753678436e-01 4.321054197012103026e-01 2.505322169010260058e-02 5.877307077139551916e-01 4.415771174397812304e-01 3.766022855145171322e-01 9.803490652619811785e-01 1.229258314111529860e-01 8.108351868714478439e-01 8.558595456964329662e-01 2.168217533833206589e-01 2.034022719386595623e-01 8.687457137579783772e-01 9.013327195854559104e-01 8.156766512673154779e-01 2.717576187546973943e-01 1.756417893371479133e-01 7.555856977566548505e-01 6.708809351312817748e-01 8.998789237886926085e-01 1.936367585946979775e-01 7.949724635465026390e-01 3.164799312763589834e-01 5.493048513173155456e-01 1.608917269168268493e-01 3.048667492191803330e-01 5.599401537727016764e-01 5.779501360842279611e-01 1.296714605309662316e-01 9.160752328055997706e-01 8.058674476110374574e-01 4.385508937505578908e-01 9.212419718012100356e-01 2.249887451242467140e-01 6.283927745352599903e-01 3.778992451536005159e-01 3.571958698867505611e-03 7.276526470528231760e-01 9.051678673805297892e-01 8.465837072484881931e-01 4.548317505393462135e-02 3.189318261926020748e-01 4.446388607398673587e-01 4.292356336344156365e-01 4.203980977718795309e-01 4.698059253071955599e-01 6.151991200848159203e-01 8.479986139404802614e-01 9.870993262459623052e-01 3.164206525899861955e-01 6.464672171639846976e-01 8.508781429592480183e-01 4.733667503354813677e-01 8.076014176740163863e-01 6.671443255679101458e-01 6.639213267047979761e-01 3.681688930741919830e-01 4.679870252651611162e-01 1.790041740686979521e-01 8.446070273663058847e-01 3.350737544979878191e-01 6.600272349677447359e-01 4.356083218487936115e-01 7.995134167346013010e-01 9.083660261041469619e-01 9.743975306734570241e-01 8.144839650654719376e-01 6.865011984586443239e-01 1.709747281999153268e-01 8.534933687161740945e-01 9.494753729726415070e-01 8.140124992294850426e-01 8.936241255316055287e-01 9.087976860818796077e-01 9.030687493451383663e-02 4.025785149840914734e-01 9.592005611533803711e-01
|
| 7 |
+
5.714058727476275523e-01 7.913573761505965365e-02 9.301773447377043036e-01 4.302822433307075256e-01 4.618892554175407783e-01 1.882471300213742760e-01 6.231472878215863487e-01 2.350437450940777717e-01 8.483410480771292894e-01 8.580803842040533036e-01 4.246398783388435350e-01 5.667321565946502604e-01 7.247417018955526480e-02 5.373984417482219333e-01 8.794242091541510931e-01 9.699025554453030162e-01 8.254197752548814160e-01 7.739723972867470492e-01 6.365819416181199841e-01 3.451230687021222820e-02 1.829102490094791644e-02 9.179618383026147965e-01 4.481667270072077214e-01 4.771270250445739380e-01 1.588469404953456454e-01 3.766332499200618633e-01 5.057026248713025751e-02 9.125900914275182352e-01 8.438133644246305076e-01 3.282972411719701222e-01 6.042003956122835584e-01 7.423456085393266290e-01 1.389012737541106546e-02 3.674754266702850991e-02 2.126646727703802586e-01 3.085666164246750887e-01 4.303440338750976757e-01 1.749037978865556342e-01 2.177699993322510519e-01 6.675614739991906355e-01 1.926533336347433512e-01 8.032010572660308600e-01 4.611412981769049679e-01 9.907201268457492827e-01 8.973785930837320235e-01 6.286342392657409128e-01 8.111266245859546364e-01 1.154230969025437092e-01 8.382880466301794176e-01 1.053753927827069115e-01 9.921712862234919328e-01 9.041662667920956631e-01 3.626267376021269362e-01 2.262225368932846425e-02 8.669003741626111204e-01 7.597054897704164089e-01 4.700318514995387442e-01 4.338185014241978665e-01 1.205425463362067573e-01 2.413879270602589111e-01 5.483334840461459025e-01 2.042653841254596925e-01 5.452588940366013270e-01 3.164646091706100339e-01 1.878958248945691301e-01 2.188622304737641855e-01 2.970982599823450698e-01 5.952148400199362976e-01 9.614251220149501176e-01 5.446813400697393392e-01 5.900748097930779146e-01 2.653062526715309621e-01 5.459933097767216692e-01 3.174185404661935550e-01 1.412133354129242457e-01 1.487441669790685594e-01 3.953776242211952674e-01 5.274261039692862418e-01 1.756132307607755072e-01 4.481942852746899630e-01 6.390660088765629521e-01 2.860380430081067571e-01 5.866902519902850166e-03 3.026687645174785946e-02 1.952533570196290924e-01 2.154769096186736066e-01 8.920573593276575064e-01 5.644513191915436767e-01 5.551464696654353492e-01 4.378199413349500579e-01 8.685737643974280608e-01 7.493934764293597173e-02 9.556749726352036234e-01 6.386433482536227890e-01 8.714694524097754691e-02 1.722786161701279628e-01 6.526867532768643176e-01 8.950304705281527662e-01 6.158198776753203152e-01 9.587176904005377809e-01
|
| 8 |
+
7.705718397401561948e-01 3.165816092999733655e-01 4.334200859975760878e-01 8.639807015515663657e-01 5.576514209532534849e-03 2.456745447057938625e-01 1.664686313299922338e-01 9.637084729617834133e-01 1.083448720752323569e-01 1.865218070380464388e-01 3.730358890475884426e-01 5.015351872138350542e-01 7.420710795841709562e-01 4.919420674769692248e-01 3.426558201886464872e-02 8.669984854934246199e-01 2.204243734202966376e-01 4.109792246853891662e-01 4.361732572946559472e-01 6.819306998053020763e-02 9.986304248057148447e-01 4.119289455392274313e-01 8.533050041845835487e-01 3.416914861912183632e-01 6.522191951039880697e-01 4.162803668786793088e-01 9.051674379917418189e-02 4.552378661306888397e-02 2.122677193466918633e-01 7.461518531655018105e-01 4.654688019259497489e-01 7.877564083548750373e-01 4.518328005682387127e-01 7.173857464237374248e-01 6.940056370290903498e-02 2.804574410412373764e-01 6.095681113112718652e-01 3.680596478602831123e-01 1.814569150719304025e-01 6.505055517979729807e-01 2.759585245701871026e-01 1.429501104786028431e-01 7.813891153083207808e-02 8.925314279991185540e-01 6.692056941902108091e-01 1.915141341107173822e-01 5.750233129581091562e-01 2.051961006251528108e-01 3.849013692629975614e-01 9.503788222043518807e-01 7.690419386411734282e-01 9.978147530014782607e-01 1.719584162437415298e-01 4.890758882401113894e-01 7.195660736040896399e-01 2.485818040997200828e-01 9.706486601870933928e-01 5.182604282071262558e-01 8.082072245463804983e-01 4.889961284821118248e-01 8.042893959057633158e-01 3.200685313413229593e-01 8.983245016887355661e-01 2.811495336955205371e-01 3.986095833814048417e-01 8.607229214132059436e-01 4.827620119717191960e-01 6.715610252037491623e-01 9.330824374137768329e-01 7.537710530085762750e-01 9.840804224010484269e-01 2.319352541177217564e-01 9.569114943157627229e-01 5.821928104654411351e-01 6.700479524814679788e-01 5.663434680086896211e-01 8.851091082101365526e-01 6.800562815862243315e-01 3.578475213752868589e-01 2.900164669281133367e-01 8.379170683569914235e-02 9.929972839740475177e-02 5.946248553621906741e-01 1.991332889320840405e-01 8.115065723822508792e-01 2.023388190440008616e-01 4.056545651129230823e-01 2.966825350250481552e-01 7.457176343507545546e-01 9.856015771246517954e-01 2.264338016147812160e-01 8.366528670045663141e-01 6.116829813603242849e-01 2.605933184296719274e-01 5.765962146558850643e-01 5.064075092266390188e-01 5.499615769589756287e-01 9.240234698632640020e-01 7.169900155229913530e-02 3.544181364560751168e-01
|
| 9 |
+
8.154844535553099627e-01 4.797965609394789777e-01 7.476703385713100447e-01 9.086708404761600910e-01 3.191752505450355937e-01 7.611128630021511965e-01 6.246790343299296611e-01 1.942001426217137006e-01 2.789860414631386565e-01 3.236359785042408621e-02 3.178191288741717413e-01 8.372264298357038337e-01 8.872692914664047636e-01 9.589758852077276963e-01 3.123722260380168425e-01 8.980164015338999439e-01 7.260784140459818348e-01 6.567013512265649222e-01 1.028743505926521529e-01 6.821705410750319443e-01 6.889838995316139858e-01 5.587525493094736007e-02 6.921487028366646310e-01 3.616312929861494885e-01 1.673758008792780583e-01 6.626504595920326146e-01 9.125680913222075086e-01 1.424077784972291871e-01 6.508496429060767197e-01 6.615417385775157477e-01 9.654167310675311198e-01 5.536662974550183858e-01 7.092622144968085962e-03 6.694595400455760625e-01 1.828533619119211417e-01 3.421514408394116247e-01 1.242580151818144518e-01 9.888774797458224075e-01 9.777955172739735135e-01 4.271370765628749178e-01 1.211608384809655936e-01 1.580132417172936954e-01 3.242705395708289640e-01 3.268994391754735940e-01 5.213767653645562383e-03 4.475169480357120699e-01 9.593245219293577986e-01 6.994304536782350867e-01 7.063863152769014331e-01 8.381620829497931080e-01 2.760441799736219615e-01 3.755200946645842475e-01 3.627729621737311172e-01 9.518310606719182498e-01 3.577273025276901386e-01 3.991159901003488164e-01 4.187060513068554535e-01 7.422605403637314581e-01 6.697944269780702342e-01 6.020599837037767799e-01 1.571185850817550245e-01 7.519860911185742847e-01 6.635775704496444938e-01 9.487848173531471252e-01 7.900030232338028924e-01 4.143783957270819052e-01 5.618429740858444932e-01 3.737804619062014000e-01 6.179941187802344693e-01 6.553638605616040058e-01 1.009709416658691739e-01 4.935037098582963910e-01 5.485489972455533936e-01 1.024147956480448984e-01 1.195764707555347917e-01 4.910516327810896531e-01 3.551185778630389089e-01 3.857601645798814927e-01 2.074975219600547760e-01 2.084038664460790002e-01 5.268616653491025037e-01 6.948014877618717833e-01 6.179744044618615817e-01 7.063658085955483168e-01 7.925757227686872630e-01 6.199016959584816577e-01 1.163676037434490107e-01 7.425752264755586252e-01 5.403115665133301215e-01 2.546191951391015840e-01 6.961300925345208501e-01 4.003013072125547467e-01 5.906120962720950995e-02 5.879915846330325824e-01 1.213602408288709800e-01 3.801780679842765576e-01 1.731477742402802722e-01 4.624568816669496485e-01 3.304453744619206823e-01 8.810445876116090869e-02
|
| 10 |
+
5.140190515373614932e-01 1.419225260054487459e-01 7.777845802285945354e-01 3.327562899409282071e-01 8.916875699762913943e-01 7.212852862736146564e-01 5.727327199433507321e-01 5.897820225918504189e-01 7.318614954542906892e-01 7.393985144455500480e-01 4.531340740296823100e-01 9.903061584426188224e-01 4.213350938331624773e-01 4.542342471963995987e-01 9.788786426453045530e-01 1.881707000343846303e-02 8.005433413647761176e-01 1.523502822273363755e-01 5.630164732287495921e-01 5.946603842470724599e-01 1.225547698678740582e-01 1.531136594724622491e-01 8.157973612638946825e-02 2.752046015644330490e-01 6.809045821946161370e-01 6.455289724528190387e-01 3.830356726830793646e-01 4.446144649678575034e-01 4.969038423960672191e-01 5.497873820641221432e-01 9.471879627821714331e-01 5.933046675329255448e-01 4.099233758501530378e-02 5.790409810134594659e-01 9.546095885251496549e-01 2.608616052375664074e-01 6.910160339170060562e-01 1.293709850476291168e-01 6.407264616302255078e-03 6.186037089828009261e-01 5.537861302543241049e-01 3.527421038298221845e-01 8.033232052121624944e-01 8.128114152830284711e-01 8.319982582278713235e-01 5.939566376046836460e-01 2.291090283499520597e-01 5.438101817725821130e-01 6.881146379117278888e-01 2.421968586304659166e-01 5.874047918543783275e-01 6.210102709484541794e-01 7.041387566450251212e-01 6.959223476278774134e-01 9.133877300988062498e-01 9.230647706207778525e-01 6.856884219815310155e-01 6.997988808693775820e-01 6.177944932528769417e-01 5.512902545683161515e-01 5.818280341729102911e-01 6.538267999985679646e-01 6.946673485935980219e-01 4.817938258357623571e-02 9.352008817207906333e-01 4.774162142215661042e-01 5.768063588692976529e-01 4.589648891483899540e-02 7.998946815651652997e-01 4.434260476954369201e-01 9.850053510925722566e-01 6.648626681529369309e-01 4.606293826856903140e-01 3.309042418210563774e-01 1.438901922508034614e-01 7.986559119276418484e-01 7.037818421334554042e-01 3.605119534240813772e-01 3.785959549258922641e-01 9.562491516841659100e-01 4.997955143590974147e-01 1.029540300938682762e-01 1.819017177001992502e-01 3.665425750262368831e-01 1.688063588370778412e-01 7.030735208313992901e-01 8.922375654244527610e-01 1.055706412056253152e-01 2.664739907746691561e-01 9.906029568647586325e-01 6.043845090140997911e-03 3.495786295043534775e-01 5.989441999519146131e-01 6.776147193866479679e-01 7.012991789852640601e-01 1.825838783477321536e-01 7.612293578749116385e-01 1.564769891240175292e-01 2.762157292905387251e-01 7.641900040015234818e-01
|
| 11 |
+
4.746013333880729768e-01 7.609202966712714788e-01 2.537820854162747830e-01 1.709362234877408460e-01 1.886635378734374813e-01 2.439567014093724229e-02 7.640304718272151741e-01 3.483216170435471382e-01 7.744289278738043514e-01 4.190437573644867353e-01 5.319091476394965934e-02 8.580130976087452233e-01 6.259446446786639529e-01 8.793213970773006150e-01 2.441023074890465994e-01 7.753405549489799098e-01 8.760187573193888300e-01 5.946480724009295393e-02 2.873093046571124631e-01 8.710837851946537924e-01 9.103181731924696596e-01 6.534637257615111272e-01 4.128420398577182793e-01 4.905858108576378607e-01 6.178275806701372108e-02 6.368043900016381320e-01 2.865296941219959148e-01 6.371773028539067241e-01 4.924322796636745325e-01 1.709313290387282080e-01 1.856892551689268700e-01 9.592782603102242289e-01 5.402593764193130976e-02 7.287312244390512506e-01 5.679467572000697073e-01 6.255587794305905724e-02 3.069660218141317953e-01 1.089960430557104232e-01 5.550748245336984965e-01 2.555948886689661803e-01 4.140925514039996980e-01 1.180376445052062628e-01 8.832322629884041820e-01 7.784546946701487169e-02 3.177678935473182698e-01 6.681804863429485764e-02 7.047099396645268854e-01 4.133897376851528582e-01 5.600656990480865627e-01 3.883995683475501837e-01 4.459430113152932362e-01 4.214077227574740681e-01 4.763369230200156235e-01 2.701480661168440545e-01 4.296286564389811824e-01 9.601402258758658936e-01 6.326999441846863359e-01 2.442086919688498670e-01 8.407708423957936938e-01 3.626867985638081437e-01 3.641441713291436733e-01 7.932397565989488530e-01 8.902073520619256941e-01 1.929173010337000838e-01 7.309376779324568973e-01 7.305852858337777977e-01 6.510197444582447313e-01 9.512661608643838695e-01 8.461467164366111016e-01 9.245490147941206605e-01 2.658844813385705663e-01 9.538758859344749208e-01 8.215517204998477041e-01 8.217795540390903097e-01 7.569662091300560780e-01 6.262685322871274218e-01 5.597770510574888725e-01 8.155720175123675197e-01 8.545688745180864965e-01 8.986051518529034610e-01 2.477911506572628708e-01 8.462580108996445860e-01 6.065941220995090255e-01 6.500490804973033665e-01 1.120463882674053169e-01 9.299049132942927010e-02 1.388364074229719858e-02 5.901199124540731367e-01 2.795110110544174464e-02 1.644097083463245124e-01 5.341029647603202646e-01 5.276816677181681570e-01 5.439849107754858304e-01 5.371677986392331405e-02 4.515163125788429488e-01 5.036243367087100964e-01 5.721818679625961801e-01 5.271368612400184617e-03 7.720961020546839304e-01 9.015383457479009266e-01
|
| 12 |
+
8.301526916287945701e-01 8.704609696144033348e-01 2.955689129581380303e-01 1.762209253489944727e-01 2.698172933050072553e-01 1.138095349991521399e-01 4.092588531860634760e-01 8.202978121681584467e-01 2.822241377079557356e-01 6.117376205659387223e-01 7.169923068016897938e-01 9.310256256264415331e-02 3.989664052931106708e-01 1.651874953308862803e-02 7.890202597932294282e-02 9.068686774810821305e-01 5.203866694486933842e-01 4.297748572844445336e-01 5.208786995443430712e-01 2.163224881365530816e-01 7.274307306357226111e-01 1.675784956180090823e-01 5.969822786565782691e-01 8.959750832846602453e-02 1.253794151891943764e-01 5.352628522116801291e-01 2.562706125890066300e-01 6.030433202137867044e-01 8.330717547440393833e-01 9.603613683422040914e-02 7.569714244468559450e-01 3.184801677796517128e-01 1.667069341164499896e-01 3.132470247801235619e-01 6.417752836394801097e-01 6.433909425912354152e-02 4.056860213146201710e-01 3.166772891331335327e-01 9.574059746098845247e-01 1.492907964460536974e-01 8.311513764927496162e-01 6.652928354977717396e-01 2.396804722185036374e-01 5.812361618600220270e-01 9.724228681350225445e-01 2.853983236378453414e-01 5.337719354896472979e-01 6.779446197712412081e-01 5.485102006140557540e-01 9.010109155962182648e-01 5.724439967467525037e-01 5.965540527411405947e-01 1.598667990086183321e-01 1.363934512727023041e-01 5.327536522697270405e-01 4.123866715061276222e-01 4.617251396918636841e-01 6.935944951381239898e-01 4.300337419593377453e-01 1.892407993760835128e-01 1.666936825594794724e-01 4.625634184864588772e-01 4.805197636774838355e-02 7.003542850133466224e-01 2.130226006716084974e-03 8.678863343041013367e-01 4.874478520451258623e-01 7.043560228741558848e-01 6.317719270475393722e-01 5.372392256296196766e-01 2.982649812986511995e-01 1.272558612133412037e-01 2.467337555730741983e-01 6.546893200021091097e-01 6.291921159383098150e-01 8.505920470407707379e-01 4.046520490181828578e-01 3.875732096593392795e-01 8.551517214319142024e-01 4.152602284179877090e-01 9.587779137989138611e-01 6.977437468944928112e-01 3.240620775541913634e-02 4.025873770391376061e-01 5.485549335619134270e-01 7.146066156157020455e-01 3.012702534568838519e-01 3.526414480395153594e-01 3.309707144485515284e-01 4.315687014460974913e-01 6.641934530697197747e-01 2.172886798352815507e-01 4.807480925564590057e-01 5.006795397998469177e-01 5.818100901154411586e-01 2.107716091585690732e-01 6.606606051140029301e-01 9.317629042790995797e-01 9.840326342340242061e-01 5.752000964817773898e-01
|
| 13 |
+
9.843444595454536872e-01 1.339523968066913540e-02 6.082172659959028671e-03 7.828244785439336662e-01 5.069653703872761819e-01 2.804896494365415327e-01 2.112385836660957139e-02 6.016479440778699228e-02 7.457477935084961818e-01 3.445503949245375397e-01 4.063494277166557200e-01 8.630275274433116817e-01 5.948396018456146850e-01 1.400867933474212457e-01 6.997522422654076646e-01 5.766519767930851081e-01 5.419976500582250889e-01 7.474121304089603735e-01 2.951600193008566686e-01 7.980170422334191827e-01 1.829036799578199757e-01 6.317636496261300749e-01 2.812612231140887431e-02 5.464747656105657381e-01 3.909873503320924204e-01 4.940850205957293406e-01 8.157850130814222611e-01 5.111092739445756150e-01 9.336823640685747439e-01 7.157105167170837445e-01 7.778989455994214097e-01 1.398722535910470466e-01 5.642653936300449091e-01 3.218717164845980028e-01 9.717427501967056402e-01 3.665791984428700134e-01 3.874321311211759156e-02 9.437600858738082188e-02 5.679526822961932231e-01 5.141385991358327079e-01 7.497840799582222715e-02 5.736515309094968318e-01 1.928132849879083954e-01 6.924244068001785823e-01 1.748389677952593146e-01 4.469577663506929532e-01 1.738527450963387455e-01 7.195287763517190793e-01 8.861150811892871682e-01 1.058443750714600506e-01 1.941789362229970894e-01 9.188374820700584422e-02 7.706736301449305104e-01 6.718642548609364828e-01 5.981029087121966237e-01 4.832880127232569434e-01 3.073688779938709148e-01 5.156312334804930009e-01 1.777418420119527553e-01 8.885462205165685079e-01 4.486254681289014723e-02 1.345398129556140132e-01 7.467627984379916484e-01 4.384565546058830643e-01 7.217750080760946263e-01 3.949550352625393890e-01 4.307950907642028593e-01 6.087680934849041270e-01 3.294516167246774874e-01 1.316682090209408962e-01 1.824857738754404046e-01 5.332379826483617524e-01 3.567136182864261151e-02 1.976220743086236631e-01 5.849349042822560296e-01 1.133174406357483344e-01 7.711522754393199675e-01 8.557306786807005183e-01 3.038353471344266143e-01 4.422747047768413875e-01 2.537160404215925702e-01 2.372714099723788328e-01 5.906462765375103396e-01 4.849909323133470007e-01 2.692576210504484813e-01 4.540849506602829821e-01 9.664935719107857759e-01 2.044371576459835804e-01 4.505417469690352616e-01 7.110722322201217249e-01 3.051357995214963870e-01 8.978937034341526457e-01 6.090501112506481185e-01 6.595415779178889215e-01 6.565426836745864581e-01 6.565608489824376059e-01 2.679102664248229626e-01 3.819533138204529443e-01 6.609794961162380744e-01 2.289558446859882856e-01
|
| 14 |
+
9.274935298374649140e-01 1.174096651033715855e-01 3.030761852629033637e-01 1.605508209527917174e-01 9.601854834873225775e-01 4.341959513718630648e-01 6.320768160802121560e-01 4.213429090614078110e-01 3.695553969042019160e-01 5.965457437116089556e-01 3.520335041155040479e-01 7.702703502247409961e-01 8.571112772962534709e-01 7.904077282532658844e-01 2.247339318352784554e-01 6.823720204503556097e-01 5.883435710582129996e-02 6.786037033312407596e-01 9.721137137641507886e-01 2.042576970668320557e-01 8.394085754806240862e-01 7.433082729552867862e-01 4.072614159870893147e-01 7.451483066617257123e-01 1.699472962789440045e-01 1.753052015584344314e-01 2.255269204788400428e-01 7.794755643807432799e-01 8.407732260470973662e-01 9.301182862857163558e-01 3.701995309382508648e-01 4.481909027604019657e-01 1.261889085033987001e-01 5.600591735875248833e-01 8.244692493969552061e-01 8.969188061645969601e-01 4.802217973423368313e-01 3.556164122713412201e-02 3.393317823164623270e-01 2.491242957582864292e-01 9.863253789366602797e-01 5.585415885291432625e-01 3.702350606362231344e-01 6.766101432620400535e-01 6.999259389475386284e-01 6.676108316872160220e-01 7.870681827507105544e-01 8.746765411259082024e-01 9.125268371282718727e-01 6.638849997061806452e-01 3.253268113800632522e-01 7.968625619248901337e-01 7.584122525443606211e-01 9.028886850768532701e-01 5.381622293189292083e-02 8.097562873320752752e-01 7.092942088208666895e-01 9.915538877968065323e-01 4.319294903327922652e-01 4.307127933969153721e-01 2.768507739641907772e-01 8.076253078288621046e-01 2.569233696442670967e-01 7.595893829724666979e-01 5.768081727897018673e-01 2.537536777625452045e-01 8.874419624636734616e-01 5.091705681832693342e-01 4.811826624992353585e-01 2.794462461940371290e-01 3.846927898276129021e-01 5.129562951959991679e-01 8.515004062224775794e-01 7.103144978683579858e-01 9.526388607201888847e-01 2.367905569592337889e-01 9.137336039323161740e-01 5.722969943101696710e-02 2.019723935481291255e-01 3.098764675203513619e-02 1.121146613918624357e-01 9.937693067724532314e-01 8.476717958861412772e-02 2.059652110343795917e-01 2.139791918759540446e-01 9.137860316709250919e-01 9.530862653366889425e-03 2.027843281683039400e-03 2.506229951837134484e-01 6.244523528392044165e-01 5.523937894075592325e-01 3.712168074031840792e-01 4.218847794299319665e-01 4.827576239387890711e-01 5.244634168840578425e-01 5.182241092381567604e-01 3.308639956263292881e-03 9.370528021570383448e-01 4.694554875029453012e-01 4.950447554541728135e-01
|
| 15 |
+
1.525818111800841814e-01 4.708012184002630107e-02 3.899035965341954846e-01 3.928304521031263929e-01 5.602286661727436945e-01 9.738256658043862313e-01 9.404465779766183475e-01 5.750862754958349088e-01 9.547546956257608741e-01 2.750275291553152535e-01 1.682773435862793265e-01 5.865928471016079726e-04 8.543378154943809255e-01 3.547649971465383079e-01 5.058056647397523031e-01 9.116332486700751137e-02 7.534666421106954726e-01 3.082429494433007733e-01 4.527145111847344916e-01 5.456680635225539255e-01 2.504131242494785914e-01 2.509240770568589296e-01 3.949236999582302898e-01 8.782959620323271821e-03 2.474641132111736752e-01 8.229417958971670943e-01 3.444225768479134420e-01 4.000027489436257522e-01 4.247741954177396417e-01 2.497745404169693373e-02 4.325768602588443423e-01 7.336592463477830117e-01 7.667663267650381975e-02 4.179022553581047683e-01 8.745172741480690126e-01 9.417705509525042817e-02 2.807522782799587446e-01 8.212710101351362590e-01 2.211181944001613386e-01 4.319929503523877168e-01 1.858636923768219873e-02 6.737037795085246694e-01 7.997187114913413275e-01 2.976552505976116647e-01 3.272347030789168887e-01 5.550935453236346406e-01 9.224109746648162522e-01 3.192827922106745708e-01 3.500098324549234530e-01 7.821988386980260888e-01 4.478417135239194380e-01 1.580956175222456572e-01 5.300807813550156844e-01 5.806154798468634581e-01 9.456842911054151868e-01 7.688127895655872956e-01 8.456527833650537840e-01 1.784229089865225770e-01 8.114517450321339087e-01 8.062506298824222428e-01 2.113482500442499523e-01 2.629226789210241666e-01 6.478686221690072022e-01 6.006672861605766300e-02 7.013679843242253131e-01 8.784753961212666828e-01 3.487138165323044880e-02 4.928426758517070461e-01 5.976224683315064512e-01 7.629063997052759616e-01 2.761721278953045422e-01 7.240740503283805696e-01 6.131065729985127888e-01 1.630885615792579957e-01 8.473783868551159060e-01 8.347614542399306448e-02 8.137265626844719657e-01 8.512508664918938539e-01 2.777097816703766320e-01 1.729154355214796990e-01 2.203382750835449766e-01 6.134780912629795857e-01 3.524352564238901753e-01 5.370314860129862256e-01 8.013986113284543578e-02 2.555842138998117852e-01 6.553915758947851389e-01 9.679125599178584061e-01 2.549566319678178150e-01 4.008180804370896633e-01 9.145789951670967310e-01 2.787926039163850511e-01 8.599455912576436933e-02 9.637558000691170967e-02 8.274101203974880692e-01 1.803747268179315411e-01 2.175735407836230095e-01 7.825994939720237742e-01 7.928519890958951599e-02 8.707949373106749213e-01
|
| 16 |
+
6.398420210047787160e-01 5.739624494012524059e-01 3.359672805578653998e-01 1.130399363175038641e-02 3.349439685346782269e-01 2.315484030880912147e-01 4.575228302577399875e-01 1.149494135594463229e-01 2.888244352925943836e-01 3.625470995156252485e-01 3.795973190611611203e-01 6.567047810450010736e-01 1.484039742710284715e-01 9.273251916560719676e-01 4.334256728976307871e-01 6.734771102219323513e-01 9.125080197222198430e-01 4.974393931097168542e-01 8.301481563280355136e-01 4.526450714147856047e-01 2.414236092573898151e-01 8.070129698367667359e-02 7.260400697427102923e-01 1.396509691839398215e-02 2.496450588391967429e-01 4.335741205447194435e-01 3.089314419194891803e-01 9.543503534526003307e-01 5.457977547458532364e-01 3.139663643587058406e-01 5.034762326753475792e-01 4.756788330475764104e-01 6.849334942793482428e-01 3.880666613022351052e-01 6.483446580176778218e-01 5.217503801099343530e-01 5.371145824070304720e-01 3.121260159429154468e-01 8.314121854062171968e-01 4.538695969561833410e-01 8.598896961203845724e-01 9.961993522734106099e-01 8.865717795946430613e-01 7.828987966783660379e-01 3.412415531643435695e-01 7.421170530151157685e-01 4.484104178639959359e-01 6.793217012099640462e-01 3.756179958191659951e-01 7.821287098222597933e-01 6.227726265188193722e-02 8.552983413221663112e-01 4.824668768009222619e-01 2.241531065858231031e-01 4.939536577599041856e-01 5.129566641128722182e-01 1.057984177672518511e-01 9.541452507300716146e-01 3.396646181755047511e-01 7.452588103611947901e-01 5.315559265659929311e-01 5.493475179850665358e-01 5.214824278139198466e-01 5.150075718147916204e-01 1.196075368500321146e-01 9.035665331176232495e-01 7.522653903639873185e-01 6.638708679914825384e-01 5.584174553800479446e-01 5.015819402508836511e-01 5.507698483308445248e-01 5.978677577011723976e-01 8.450418028759657529e-01 3.266677322748618995e-01 1.321610045897971819e-01 2.394354042746985600e-01 2.723972163557076831e-01 5.523301747352814539e-01 5.518043850608547185e-01 5.283968096837132755e-02 8.192733312104071297e-01 2.277106024970321219e-02 1.414998099027269252e-01 6.517281615256080851e-01 1.811694734825117781e-01 9.472370614713256920e-01 5.454497319021770485e-01 1.364119913158231556e-01 8.446142008509562871e-01 7.671725984742419069e-01 2.461161648406858804e-01 1.421724627107351369e-01 6.290652581179481118e-01 7.094144689448004248e-01 4.419656923472803367e-02 6.614741876652251440e-01 8.712193265403500586e-02 4.734931280852430202e-01 5.382037050480286133e-01 1.396459758005891283e-01
|
| 17 |
+
9.709329844415439670e-01 8.998575745276288229e-01 9.151313462895852568e-01 6.920489275523904471e-01 2.892231405199537919e-01 6.750679746268205550e-01 5.515642485826798280e-01 1.065253097812824956e-01 2.957026803465776510e-01 8.937347659632134400e-01 9.800016515925590310e-01 7.745900896182087436e-01 1.570977683146633774e-01 1.482028765821026273e-01 2.111147779712029271e-01 9.683759902485811200e-01 6.550951580826911425e-01 8.728324682592377703e-01 5.044803166579884257e-01 8.285704754811143991e-01 1.693574499337324735e-02 6.032669995180495182e-02 1.687026879086964692e-01 7.701554026145973619e-01 1.429888016593102718e-01 5.881172815379975827e-02 9.704206919487038396e-01 4.450807650730836951e-01 1.597445784258376689e-01 9.849229394397314152e-01 4.220083573536804744e-01 9.357693600374825671e-01 2.313199262338369033e-01 4.556443403861323294e-01 2.590791012828855822e-01 8.438664994487065085e-01 5.519045677502344427e-01 4.702170125676508050e-01 6.814723205638187897e-01 7.418295483665861001e-01 3.684921032028853904e-01 1.501895844844561845e-01 4.214513377519605308e-01 8.600279963652578408e-01 6.625616611189292238e-01 5.200151456470966105e-01 7.881072743086801058e-01 2.771703241081423519e-01 9.034135930616548071e-01 5.848441705791300738e-01 8.341698181274771473e-01 1.966638677318299777e-01 7.059747894371543042e-01 7.013854316067694716e-01 1.828430942760242983e-01 4.745548949934464966e-01 6.306422394641082452e-01 7.760751707194470939e-01 9.813187212598396547e-01 2.293595795266353266e-01 7.749261876107090830e-01 2.384106107787011819e-01 9.721209688979495223e-01 2.715569353686980714e-01 2.915573577694993146e-01 3.579601509630966349e-01 3.085697512342830962e-01 4.070219981627976047e-01 1.989632411372218579e-01 7.330003339460906542e-01 5.397259604481572381e-01 6.931009942216573849e-01 1.385457419653816080e-01 1.140339999976658358e-01 3.980752590866034613e-01 9.471822621683767540e-01 5.476643721405823895e-01 6.824131903515884279e-02 5.844099130744569992e-01 2.346881692012994236e-01 9.436439228519653000e-01 4.855518260479008141e-02 8.157036123302675579e-01 1.169761256455048581e-01 5.532962903488753970e-01 1.100965596251435308e-01 9.789490602992410029e-01 8.433487462016989733e-01 1.272410782852178013e-01 2.885715258680641160e-01 7.990943955388217779e-01 1.565305358979097727e-01 9.160846960406943129e-02 8.521842244411678147e-01 4.474243106736998099e-01 3.843945818845087015e-01 4.710645906071458944e-01 2.398348154123419729e-01 6.435351435258193087e-01 7.656897921129046658e-01
|
| 18 |
+
4.894328120406804539e-01 7.881019629214267574e-01 6.974585354155089512e-01 2.023858939857701156e-01 1.660984914264745926e-01 4.854517801734643534e-01 2.789848572630315715e-01 2.311636522410289718e-01 9.821076233980715608e-01 1.220641257408076052e-01 2.614036146663852866e-01 7.657560715165320220e-01 3.968360577545695378e-01 4.566023622802184434e-02 1.049701948619241598e-02 9.281162949127452766e-01 4.490137965769909201e-01 2.095846458383606725e-01 9.195504656719085679e-01 9.683515436855471004e-01 9.800174878114910060e-01 5.517610861380117804e-01 6.711570559348770670e-01 5.125258050287277989e-01 2.105581493613526423e-01 8.281813206544574868e-01 4.964783994807770995e-01 7.284974208756571645e-01 1.320629592816270348e-01 6.652194518096135045e-01 9.430156297917950958e-01 7.477263137894260003e-01 2.054087806450300979e-01 4.248209124837907247e-01 7.657518666018259257e-02 1.031614100713345028e-01 4.122242287567021712e-01 4.919658859336810686e-01 3.752650167259050651e-01 4.175771429986683270e-01 6.131376293448997927e-01 5.463797405837259591e-01 3.119918548921774004e-01 6.331762507678504459e-01 5.484632429281035559e-01 6.815448032785871302e-01 8.065695507425107991e-02 8.720129122297424207e-01 8.318188557125294480e-03 2.199323537180564170e-02 8.933872719887463454e-01 1.953120287872067706e-02 2.478721941404590234e-01 5.994061179859005994e-01 6.588362611693047155e-01 6.332808851020984564e-01 3.823849348043323326e-01 5.111091324899629251e-01 7.034808459110406531e-01 4.347681568463539481e-01 4.316973576672314961e-01 9.620411080123215664e-01 6.247837467655984467e-01 8.196961678222113301e-01 5.574601810887074294e-01 8.800635018469276094e-01 8.772255241161972528e-01 5.075275933138404527e-01 8.022583187266906224e-01 2.320670802521890286e-01 1.165626629103270195e-01 4.623759662685936744e-01 7.938327000737943617e-02 7.986374689793115378e-01 6.728842751465858862e-01 8.133909095059230765e-01 1.202639390769081329e-01 1.052937257108800262e-01 8.717600467040409473e-02 2.163819956545051104e-01 6.596483385763984852e-01 1.202843170392309258e-02 1.538789195854695091e-01 3.120247727263308901e-01 3.408168327248596308e-01 3.241861797851740556e-01 3.637074533655986208e-01 1.533669345890729119e-01 4.455921334699539660e-01 5.619140093874478437e-01 1.881731359879111887e-01 9.416670800570559052e-01 1.740018593664415247e-01 7.030242331869680505e-01 5.922055553954849172e-01 9.326211623391688077e-01 6.608322881013140027e-01 7.009721551241574478e-01 1.079126054675583202e-01 6.158176671761947940e-01
|
| 19 |
+
5.185079639625639336e-01 9.613742991518259284e-01 5.555312825626229634e-01 2.647628827924735084e-01 6.003697207460141350e-01 5.392112376769145898e-01 6.781186965667050925e-01 9.908971748181496508e-01 4.124155872095397468e-01 9.814941401724619485e-02 2.684237785531295994e-02 1.774652505962848181e-01 1.707589529595294753e-01 4.640932098465534450e-01 2.882179883914587348e-01 7.276822905806898945e-01 6.145789546745269449e-01 1.100959863917608805e-01 6.798859723042820491e-01 9.096984032948918220e-01 3.971368455178179158e-01 2.959494950971321980e-01 3.742088799298171065e-02 1.960739526210202310e-01 7.536102695342027369e-01 6.680915510628401277e-01 4.136507204312135366e-01 3.613996339406737590e-01 3.605422038261204554e-01 7.098503555159476619e-01 8.093719147087541366e-01 6.344097009128880638e-01 3.990082448083617228e-01 2.805918009906902544e-01 7.078488167363675698e-01 9.969917259866583059e-01 9.442054998992396309e-01 1.329075240769165278e-01 6.810681350588387861e-02 8.503491437913293094e-01 8.347117439165431252e-01 2.381858201903953587e-01 7.884260706938626129e-01 7.109907917419661105e-01 6.390916681983604963e-02 6.174365227062991179e-01 5.085733343630816083e-01 1.716846139694149231e-01 9.065664924270055991e-02 5.625330757196970177e-01 3.539663480209681579e-01 8.937139525947165319e-01 3.981380511900556307e-02 7.403597927449541150e-01 3.803872284089604427e-02 6.729519695709765825e-01 5.306080908840085097e-01 2.091237680402112664e-01 5.902903662907804661e-01 2.094778612095482551e-01 7.323447855684165342e-01 3.644574495843493356e-01 2.006215478057034041e-01 3.737617545555030896e-01 5.253471759602216240e-01 4.287889547869583318e-01 7.086098806190446187e-01 4.510792335515292351e-01 6.383187180169215269e-01 8.779355722397681472e-01 4.221338898667141848e-01 6.375840144651815367e-01 8.683057298299173832e-01 6.093730356952498095e-01 9.297141161056151626e-01 7.770838342807246946e-01 6.549661287008456956e-02 2.835060738158660110e-01 4.474138867374952699e-01 8.530336387421445510e-01 3.160209657891883683e-01 8.301538680518486535e-01 6.646903097549101691e-01 7.187130118106234145e-01 1.651862041735395747e-01 9.578252676762609719e-01 6.490273812885494209e-02 9.777273484666341163e-01 8.930729829254262508e-01 9.851054752118463265e-01 4.094323402286751401e-01 1.139176240124337713e-01 7.612865863899589414e-01 2.266379302491570158e-01 6.998882496157835531e-01 9.945043379099228753e-01 7.111578056749194854e-01 7.806190603886183910e-01 3.410170920712443099e-01 9.446084168886822452e-01
|
| 20 |
+
5.015172758330755931e-01 5.569527971282052237e-01 1.122406928736449094e-01 8.960352822124777461e-01 6.049568585854003810e-02 1.202196001338627918e-01 1.870314295763603196e-01 9.017590029396971296e-01 3.597904628087450485e-01 2.130941062746317671e-01 2.556281834629479111e-01 5.123669364829196438e-01 4.754061129282013409e-01 9.764470380372083369e-01 8.038663983900646848e-01 6.960491266420890666e-01 2.940135977911654264e-01 2.857282759910040326e-03 4.599343225832352999e-02 5.597554495210212977e-01 7.445266674304001908e-01 3.387528030535971180e-01 6.429542922125383031e-01 2.123331785532429627e-01 5.302332654117811739e-01 7.262555377662539557e-01 3.982425859900724507e-01 3.243388301740235402e-01 6.191064123738921898e-01 8.988047781373914580e-01 7.819700328765150088e-01 7.664269102804815992e-01 6.734095355422575757e-03 2.904762329148526945e-01 5.097537644843168625e-01 9.524734606001823423e-01 4.812869576591960463e-01 6.236868013640477493e-01 1.459170943214320726e-01 9.874505139403206844e-01 7.561708982837871407e-01 3.798591332432484924e-01 6.056633451375117438e-01 7.935708170258731764e-01 1.458141583518740569e-01 7.082511296391911237e-01 1.098798009731616343e-02 3.655618484905173160e-01 9.551862303858617009e-01 8.148959351152762487e-02 4.739306219219985294e-02 7.963357515359494876e-01 6.208332695202813944e-01 3.884182264923189409e-01 4.589167647950288531e-01 6.496652974138312775e-01 2.467528128074852889e-01 5.309593064844935206e-01 5.364606369543487574e-01 2.421352989851309756e-01 3.776834556696828660e-02 1.564861233558080267e-01 5.197231021782636740e-01 8.725375120634637494e-01 2.441225493455024820e-01 2.320363366041028330e-01 5.026358683423555185e-01 7.035766000474735771e-01 8.347805591467084563e-01 2.303229841813967393e-01 6.908373419683054850e-01 2.646662377366995056e-01 1.259467197942290007e-01 9.372770922994989595e-01 6.674216272867254940e-01 1.027944489143072238e-01 5.686267290346079806e-01 3.948222804451942958e-01 4.689706944496729868e-01 4.446117700449114807e-02 6.817992275557515081e-01 9.084821829413957106e-01 9.184021015315092518e-01 3.045815734169987632e-01 2.204958624923980537e-03 7.542672057172502553e-01 9.460844786545006269e-01 3.373139094575949848e-02 9.059565314915285494e-01 9.938525461318854504e-01 2.542072661725306437e-01 9.685734112479216229e-02 8.223629541824816203e-01 1.057429056898460118e-01 8.080679390260248063e-01 5.823014244609205914e-01 6.413551528031806725e-01 1.787341975438894170e-01 1.250471413912357388e-01 8.390281297596062782e-01
|
shared/package-files/d1/d12ee45a23c42919a2d224bc250dcae530a1cd2a59361026d668f25d081a513f/blob
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
// @generated by torchgen/gen.py from DispatchKeyFunction.h
|
| 3 |
+
|
| 4 |
+
// NB: The implementing C++ file is RegisterDispatchKey.cpp
|
| 5 |
+
|
| 6 |
+
// The only #includes we need are for custom classes that have defaults in the C++ API
|
| 7 |
+
#include <c10/core/MemoryFormat.h>
|
| 8 |
+
#include <c10/core/Scalar.h>
|
| 9 |
+
#include <ATen/core/Reduction.h>
|
| 10 |
+
|
| 11 |
+
// Forward declarations of any types needed in the operator signatures.
|
| 12 |
+
// We can't directly include these classes because it will cause circular include dependencies.
|
| 13 |
+
// This file is included by TensorBody.h, which defines the Tensor class.
|
| 14 |
+
#include <ATen/core/ATen_fwd.h>
|
| 15 |
+
|
| 16 |
+
namespace at {
|
| 17 |
+
|
| 18 |
+
namespace compositeimplicitautograd {
|
| 19 |
+
|
| 20 |
+
TORCH_API ::std::tuple<at::Tensor,at::Tensor> _grid_sampler_2d_cpu_fallback_backward(const at::Tensor & grad_output, const at::Tensor & input, const at::Tensor & grid, int64_t interpolation_mode, int64_t padding_mode, bool align_corners);
|
| 21 |
+
|
| 22 |
+
} // namespace compositeimplicitautograd
|
| 23 |
+
} // namespace at
|
shared/package-files/d1/d1324a6081d2205c907151d97481d9d7d6fbb6ab2dfec63b899c232b372f6413/blob
ADDED
|
@@ -0,0 +1,1615 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Do NOT manually edit this file.
|
| 3 |
+
Instead, run ./bin/ask_update.py.
|
| 4 |
+
"""
|
| 5 |
+
|
| 6 |
+
defined_facts = [
|
| 7 |
+
'algebraic',
|
| 8 |
+
'antihermitian',
|
| 9 |
+
'commutative',
|
| 10 |
+
'complex',
|
| 11 |
+
'composite',
|
| 12 |
+
'even',
|
| 13 |
+
'extended_negative',
|
| 14 |
+
'extended_nonnegative',
|
| 15 |
+
'extended_nonpositive',
|
| 16 |
+
'extended_nonzero',
|
| 17 |
+
'extended_positive',
|
| 18 |
+
'extended_real',
|
| 19 |
+
'finite',
|
| 20 |
+
'hermitian',
|
| 21 |
+
'imaginary',
|
| 22 |
+
'infinite',
|
| 23 |
+
'integer',
|
| 24 |
+
'irrational',
|
| 25 |
+
'negative',
|
| 26 |
+
'noninteger',
|
| 27 |
+
'nonnegative',
|
| 28 |
+
'nonpositive',
|
| 29 |
+
'nonzero',
|
| 30 |
+
'odd',
|
| 31 |
+
'positive',
|
| 32 |
+
'prime',
|
| 33 |
+
'rational',
|
| 34 |
+
'real',
|
| 35 |
+
'transcendental',
|
| 36 |
+
'zero',
|
| 37 |
+
] # defined_facts
|
| 38 |
+
|
| 39 |
+
|
| 40 |
+
full_implications = dict( [
|
| 41 |
+
# Implications of algebraic = True:
|
| 42 |
+
(('algebraic', True), set( (
|
| 43 |
+
('commutative', True),
|
| 44 |
+
('complex', True),
|
| 45 |
+
('finite', True),
|
| 46 |
+
('infinite', False),
|
| 47 |
+
('transcendental', False),
|
| 48 |
+
) ),
|
| 49 |
+
),
|
| 50 |
+
# Implications of algebraic = False:
|
| 51 |
+
(('algebraic', False), set( (
|
| 52 |
+
('composite', False),
|
| 53 |
+
('even', False),
|
| 54 |
+
('integer', False),
|
| 55 |
+
('odd', False),
|
| 56 |
+
('prime', False),
|
| 57 |
+
('rational', False),
|
| 58 |
+
('zero', False),
|
| 59 |
+
) ),
|
| 60 |
+
),
|
| 61 |
+
# Implications of antihermitian = True:
|
| 62 |
+
(('antihermitian', True), set( (
|
| 63 |
+
) ),
|
| 64 |
+
),
|
| 65 |
+
# Implications of antihermitian = False:
|
| 66 |
+
(('antihermitian', False), set( (
|
| 67 |
+
('imaginary', False),
|
| 68 |
+
) ),
|
| 69 |
+
),
|
| 70 |
+
# Implications of commutative = True:
|
| 71 |
+
(('commutative', True), set( (
|
| 72 |
+
) ),
|
| 73 |
+
),
|
| 74 |
+
# Implications of commutative = False:
|
| 75 |
+
(('commutative', False), set( (
|
| 76 |
+
('algebraic', False),
|
| 77 |
+
('complex', False),
|
| 78 |
+
('composite', False),
|
| 79 |
+
('even', False),
|
| 80 |
+
('extended_negative', False),
|
| 81 |
+
('extended_nonnegative', False),
|
| 82 |
+
('extended_nonpositive', False),
|
| 83 |
+
('extended_nonzero', False),
|
| 84 |
+
('extended_positive', False),
|
| 85 |
+
('extended_real', False),
|
| 86 |
+
('imaginary', False),
|
| 87 |
+
('integer', False),
|
| 88 |
+
('irrational', False),
|
| 89 |
+
('negative', False),
|
| 90 |
+
('noninteger', False),
|
| 91 |
+
('nonnegative', False),
|
| 92 |
+
('nonpositive', False),
|
| 93 |
+
('nonzero', False),
|
| 94 |
+
('odd', False),
|
| 95 |
+
('positive', False),
|
| 96 |
+
('prime', False),
|
| 97 |
+
('rational', False),
|
| 98 |
+
('real', False),
|
| 99 |
+
('transcendental', False),
|
| 100 |
+
('zero', False),
|
| 101 |
+
) ),
|
| 102 |
+
),
|
| 103 |
+
# Implications of complex = True:
|
| 104 |
+
(('complex', True), set( (
|
| 105 |
+
('commutative', True),
|
| 106 |
+
('finite', True),
|
| 107 |
+
('infinite', False),
|
| 108 |
+
) ),
|
| 109 |
+
),
|
| 110 |
+
# Implications of complex = False:
|
| 111 |
+
(('complex', False), set( (
|
| 112 |
+
('algebraic', False),
|
| 113 |
+
('composite', False),
|
| 114 |
+
('even', False),
|
| 115 |
+
('imaginary', False),
|
| 116 |
+
('integer', False),
|
| 117 |
+
('irrational', False),
|
| 118 |
+
('negative', False),
|
| 119 |
+
('nonnegative', False),
|
| 120 |
+
('nonpositive', False),
|
| 121 |
+
('nonzero', False),
|
| 122 |
+
('odd', False),
|
| 123 |
+
('positive', False),
|
| 124 |
+
('prime', False),
|
| 125 |
+
('rational', False),
|
| 126 |
+
('real', False),
|
| 127 |
+
('transcendental', False),
|
| 128 |
+
('zero', False),
|
| 129 |
+
) ),
|
| 130 |
+
),
|
| 131 |
+
# Implications of composite = True:
|
| 132 |
+
(('composite', True), set( (
|
| 133 |
+
('algebraic', True),
|
| 134 |
+
('commutative', True),
|
| 135 |
+
('complex', True),
|
| 136 |
+
('extended_negative', False),
|
| 137 |
+
('extended_nonnegative', True),
|
| 138 |
+
('extended_nonpositive', False),
|
| 139 |
+
('extended_nonzero', True),
|
| 140 |
+
('extended_positive', True),
|
| 141 |
+
('extended_real', True),
|
| 142 |
+
('finite', True),
|
| 143 |
+
('hermitian', True),
|
| 144 |
+
('imaginary', False),
|
| 145 |
+
('infinite', False),
|
| 146 |
+
('integer', True),
|
| 147 |
+
('irrational', False),
|
| 148 |
+
('negative', False),
|
| 149 |
+
('noninteger', False),
|
| 150 |
+
('nonnegative', True),
|
| 151 |
+
('nonpositive', False),
|
| 152 |
+
('nonzero', True),
|
| 153 |
+
('positive', True),
|
| 154 |
+
('prime', False),
|
| 155 |
+
('rational', True),
|
| 156 |
+
('real', True),
|
| 157 |
+
('transcendental', False),
|
| 158 |
+
('zero', False),
|
| 159 |
+
) ),
|
| 160 |
+
),
|
| 161 |
+
# Implications of composite = False:
|
| 162 |
+
(('composite', False), set( (
|
| 163 |
+
) ),
|
| 164 |
+
),
|
| 165 |
+
# Implications of even = True:
|
| 166 |
+
(('even', True), set( (
|
| 167 |
+
('algebraic', True),
|
| 168 |
+
('commutative', True),
|
| 169 |
+
('complex', True),
|
| 170 |
+
('extended_real', True),
|
| 171 |
+
('finite', True),
|
| 172 |
+
('hermitian', True),
|
| 173 |
+
('imaginary', False),
|
| 174 |
+
('infinite', False),
|
| 175 |
+
('integer', True),
|
| 176 |
+
('irrational', False),
|
| 177 |
+
('noninteger', False),
|
| 178 |
+
('odd', False),
|
| 179 |
+
('rational', True),
|
| 180 |
+
('real', True),
|
| 181 |
+
('transcendental', False),
|
| 182 |
+
) ),
|
| 183 |
+
),
|
| 184 |
+
# Implications of even = False:
|
| 185 |
+
(('even', False), set( (
|
| 186 |
+
('zero', False),
|
| 187 |
+
) ),
|
| 188 |
+
),
|
| 189 |
+
# Implications of extended_negative = True:
|
| 190 |
+
(('extended_negative', True), set( (
|
| 191 |
+
('commutative', True),
|
| 192 |
+
('composite', False),
|
| 193 |
+
('extended_nonnegative', False),
|
| 194 |
+
('extended_nonpositive', True),
|
| 195 |
+
('extended_nonzero', True),
|
| 196 |
+
('extended_positive', False),
|
| 197 |
+
('extended_real', True),
|
| 198 |
+
('imaginary', False),
|
| 199 |
+
('nonnegative', False),
|
| 200 |
+
('positive', False),
|
| 201 |
+
('prime', False),
|
| 202 |
+
('zero', False),
|
| 203 |
+
) ),
|
| 204 |
+
),
|
| 205 |
+
# Implications of extended_negative = False:
|
| 206 |
+
(('extended_negative', False), set( (
|
| 207 |
+
('negative', False),
|
| 208 |
+
) ),
|
| 209 |
+
),
|
| 210 |
+
# Implications of extended_nonnegative = True:
|
| 211 |
+
(('extended_nonnegative', True), set( (
|
| 212 |
+
('commutative', True),
|
| 213 |
+
('extended_negative', False),
|
| 214 |
+
('extended_real', True),
|
| 215 |
+
('imaginary', False),
|
| 216 |
+
('negative', False),
|
| 217 |
+
) ),
|
| 218 |
+
),
|
| 219 |
+
# Implications of extended_nonnegative = False:
|
| 220 |
+
(('extended_nonnegative', False), set( (
|
| 221 |
+
('composite', False),
|
| 222 |
+
('extended_positive', False),
|
| 223 |
+
('nonnegative', False),
|
| 224 |
+
('positive', False),
|
| 225 |
+
('prime', False),
|
| 226 |
+
('zero', False),
|
| 227 |
+
) ),
|
| 228 |
+
),
|
| 229 |
+
# Implications of extended_nonpositive = True:
|
| 230 |
+
(('extended_nonpositive', True), set( (
|
| 231 |
+
('commutative', True),
|
| 232 |
+
('composite', False),
|
| 233 |
+
('extended_positive', False),
|
| 234 |
+
('extended_real', True),
|
| 235 |
+
('imaginary', False),
|
| 236 |
+
('positive', False),
|
| 237 |
+
('prime', False),
|
| 238 |
+
) ),
|
| 239 |
+
),
|
| 240 |
+
# Implications of extended_nonpositive = False:
|
| 241 |
+
(('extended_nonpositive', False), set( (
|
| 242 |
+
('extended_negative', False),
|
| 243 |
+
('negative', False),
|
| 244 |
+
('nonpositive', False),
|
| 245 |
+
('zero', False),
|
| 246 |
+
) ),
|
| 247 |
+
),
|
| 248 |
+
# Implications of extended_nonzero = True:
|
| 249 |
+
(('extended_nonzero', True), set( (
|
| 250 |
+
('commutative', True),
|
| 251 |
+
('extended_real', True),
|
| 252 |
+
('imaginary', False),
|
| 253 |
+
('zero', False),
|
| 254 |
+
) ),
|
| 255 |
+
),
|
| 256 |
+
# Implications of extended_nonzero = False:
|
| 257 |
+
(('extended_nonzero', False), set( (
|
| 258 |
+
('composite', False),
|
| 259 |
+
('extended_negative', False),
|
| 260 |
+
('extended_positive', False),
|
| 261 |
+
('negative', False),
|
| 262 |
+
('nonzero', False),
|
| 263 |
+
('positive', False),
|
| 264 |
+
('prime', False),
|
| 265 |
+
) ),
|
| 266 |
+
),
|
| 267 |
+
# Implications of extended_positive = True:
|
| 268 |
+
(('extended_positive', True), set( (
|
| 269 |
+
('commutative', True),
|
| 270 |
+
('extended_negative', False),
|
| 271 |
+
('extended_nonnegative', True),
|
| 272 |
+
('extended_nonpositive', False),
|
| 273 |
+
('extended_nonzero', True),
|
| 274 |
+
('extended_real', True),
|
| 275 |
+
('imaginary', False),
|
| 276 |
+
('negative', False),
|
| 277 |
+
('nonpositive', False),
|
| 278 |
+
('zero', False),
|
| 279 |
+
) ),
|
| 280 |
+
),
|
| 281 |
+
# Implications of extended_positive = False:
|
| 282 |
+
(('extended_positive', False), set( (
|
| 283 |
+
('composite', False),
|
| 284 |
+
('positive', False),
|
| 285 |
+
('prime', False),
|
| 286 |
+
) ),
|
| 287 |
+
),
|
| 288 |
+
# Implications of extended_real = True:
|
| 289 |
+
(('extended_real', True), set( (
|
| 290 |
+
('commutative', True),
|
| 291 |
+
('imaginary', False),
|
| 292 |
+
) ),
|
| 293 |
+
),
|
| 294 |
+
# Implications of extended_real = False:
|
| 295 |
+
(('extended_real', False), set( (
|
| 296 |
+
('composite', False),
|
| 297 |
+
('even', False),
|
| 298 |
+
('extended_negative', False),
|
| 299 |
+
('extended_nonnegative', False),
|
| 300 |
+
('extended_nonpositive', False),
|
| 301 |
+
('extended_nonzero', False),
|
| 302 |
+
('extended_positive', False),
|
| 303 |
+
('integer', False),
|
| 304 |
+
('irrational', False),
|
| 305 |
+
('negative', False),
|
| 306 |
+
('noninteger', False),
|
| 307 |
+
('nonnegative', False),
|
| 308 |
+
('nonpositive', False),
|
| 309 |
+
('nonzero', False),
|
| 310 |
+
('odd', False),
|
| 311 |
+
('positive', False),
|
| 312 |
+
('prime', False),
|
| 313 |
+
('rational', False),
|
| 314 |
+
('real', False),
|
| 315 |
+
('zero', False),
|
| 316 |
+
) ),
|
| 317 |
+
),
|
| 318 |
+
# Implications of finite = True:
|
| 319 |
+
(('finite', True), set( (
|
| 320 |
+
('infinite', False),
|
| 321 |
+
) ),
|
| 322 |
+
),
|
| 323 |
+
# Implications of finite = False:
|
| 324 |
+
(('finite', False), set( (
|
| 325 |
+
('algebraic', False),
|
| 326 |
+
('complex', False),
|
| 327 |
+
('composite', False),
|
| 328 |
+
('even', False),
|
| 329 |
+
('imaginary', False),
|
| 330 |
+
('infinite', True),
|
| 331 |
+
('integer', False),
|
| 332 |
+
('irrational', False),
|
| 333 |
+
('negative', False),
|
| 334 |
+
('nonnegative', False),
|
| 335 |
+
('nonpositive', False),
|
| 336 |
+
('nonzero', False),
|
| 337 |
+
('odd', False),
|
| 338 |
+
('positive', False),
|
| 339 |
+
('prime', False),
|
| 340 |
+
('rational', False),
|
| 341 |
+
('real', False),
|
| 342 |
+
('transcendental', False),
|
| 343 |
+
('zero', False),
|
| 344 |
+
) ),
|
| 345 |
+
),
|
| 346 |
+
# Implications of hermitian = True:
|
| 347 |
+
(('hermitian', True), set( (
|
| 348 |
+
) ),
|
| 349 |
+
),
|
| 350 |
+
# Implications of hermitian = False:
|
| 351 |
+
(('hermitian', False), set( (
|
| 352 |
+
('composite', False),
|
| 353 |
+
('even', False),
|
| 354 |
+
('integer', False),
|
| 355 |
+
('irrational', False),
|
| 356 |
+
('negative', False),
|
| 357 |
+
('nonnegative', False),
|
| 358 |
+
('nonpositive', False),
|
| 359 |
+
('nonzero', False),
|
| 360 |
+
('odd', False),
|
| 361 |
+
('positive', False),
|
| 362 |
+
('prime', False),
|
| 363 |
+
('rational', False),
|
| 364 |
+
('real', False),
|
| 365 |
+
('zero', False),
|
| 366 |
+
) ),
|
| 367 |
+
),
|
| 368 |
+
# Implications of imaginary = True:
|
| 369 |
+
(('imaginary', True), set( (
|
| 370 |
+
('antihermitian', True),
|
| 371 |
+
('commutative', True),
|
| 372 |
+
('complex', True),
|
| 373 |
+
('composite', False),
|
| 374 |
+
('even', False),
|
| 375 |
+
('extended_negative', False),
|
| 376 |
+
('extended_nonnegative', False),
|
| 377 |
+
('extended_nonpositive', False),
|
| 378 |
+
('extended_nonzero', False),
|
| 379 |
+
('extended_positive', False),
|
| 380 |
+
('extended_real', False),
|
| 381 |
+
('finite', True),
|
| 382 |
+
('infinite', False),
|
| 383 |
+
('integer', False),
|
| 384 |
+
('irrational', False),
|
| 385 |
+
('negative', False),
|
| 386 |
+
('noninteger', False),
|
| 387 |
+
('nonnegative', False),
|
| 388 |
+
('nonpositive', False),
|
| 389 |
+
('nonzero', False),
|
| 390 |
+
('odd', False),
|
| 391 |
+
('positive', False),
|
| 392 |
+
('prime', False),
|
| 393 |
+
('rational', False),
|
| 394 |
+
('real', False),
|
| 395 |
+
('zero', False),
|
| 396 |
+
) ),
|
| 397 |
+
),
|
| 398 |
+
# Implications of imaginary = False:
|
| 399 |
+
(('imaginary', False), set( (
|
| 400 |
+
) ),
|
| 401 |
+
),
|
| 402 |
+
# Implications of infinite = True:
|
| 403 |
+
(('infinite', True), set( (
|
| 404 |
+
('algebraic', False),
|
| 405 |
+
('complex', False),
|
| 406 |
+
('composite', False),
|
| 407 |
+
('even', False),
|
| 408 |
+
('finite', False),
|
| 409 |
+
('imaginary', False),
|
| 410 |
+
('integer', False),
|
| 411 |
+
('irrational', False),
|
| 412 |
+
('negative', False),
|
| 413 |
+
('nonnegative', False),
|
| 414 |
+
('nonpositive', False),
|
| 415 |
+
('nonzero', False),
|
| 416 |
+
('odd', False),
|
| 417 |
+
('positive', False),
|
| 418 |
+
('prime', False),
|
| 419 |
+
('rational', False),
|
| 420 |
+
('real', False),
|
| 421 |
+
('transcendental', False),
|
| 422 |
+
('zero', False),
|
| 423 |
+
) ),
|
| 424 |
+
),
|
| 425 |
+
# Implications of infinite = False:
|
| 426 |
+
(('infinite', False), set( (
|
| 427 |
+
('finite', True),
|
| 428 |
+
) ),
|
| 429 |
+
),
|
| 430 |
+
# Implications of integer = True:
|
| 431 |
+
(('integer', True), set( (
|
| 432 |
+
('algebraic', True),
|
| 433 |
+
('commutative', True),
|
| 434 |
+
('complex', True),
|
| 435 |
+
('extended_real', True),
|
| 436 |
+
('finite', True),
|
| 437 |
+
('hermitian', True),
|
| 438 |
+
('imaginary', False),
|
| 439 |
+
('infinite', False),
|
| 440 |
+
('irrational', False),
|
| 441 |
+
('noninteger', False),
|
| 442 |
+
('rational', True),
|
| 443 |
+
('real', True),
|
| 444 |
+
('transcendental', False),
|
| 445 |
+
) ),
|
| 446 |
+
),
|
| 447 |
+
# Implications of integer = False:
|
| 448 |
+
(('integer', False), set( (
|
| 449 |
+
('composite', False),
|
| 450 |
+
('even', False),
|
| 451 |
+
('odd', False),
|
| 452 |
+
('prime', False),
|
| 453 |
+
('zero', False),
|
| 454 |
+
) ),
|
| 455 |
+
),
|
| 456 |
+
# Implications of irrational = True:
|
| 457 |
+
(('irrational', True), set( (
|
| 458 |
+
('commutative', True),
|
| 459 |
+
('complex', True),
|
| 460 |
+
('composite', False),
|
| 461 |
+
('even', False),
|
| 462 |
+
('extended_nonzero', True),
|
| 463 |
+
('extended_real', True),
|
| 464 |
+
('finite', True),
|
| 465 |
+
('hermitian', True),
|
| 466 |
+
('imaginary', False),
|
| 467 |
+
('infinite', False),
|
| 468 |
+
('integer', False),
|
| 469 |
+
('noninteger', True),
|
| 470 |
+
('nonzero', True),
|
| 471 |
+
('odd', False),
|
| 472 |
+
('prime', False),
|
| 473 |
+
('rational', False),
|
| 474 |
+
('real', True),
|
| 475 |
+
('zero', False),
|
| 476 |
+
) ),
|
| 477 |
+
),
|
| 478 |
+
# Implications of irrational = False:
|
| 479 |
+
(('irrational', False), set( (
|
| 480 |
+
) ),
|
| 481 |
+
),
|
| 482 |
+
# Implications of negative = True:
|
| 483 |
+
(('negative', True), set( (
|
| 484 |
+
('commutative', True),
|
| 485 |
+
('complex', True),
|
| 486 |
+
('composite', False),
|
| 487 |
+
('extended_negative', True),
|
| 488 |
+
('extended_nonnegative', False),
|
| 489 |
+
('extended_nonpositive', True),
|
| 490 |
+
('extended_nonzero', True),
|
| 491 |
+
('extended_positive', False),
|
| 492 |
+
('extended_real', True),
|
| 493 |
+
('finite', True),
|
| 494 |
+
('hermitian', True),
|
| 495 |
+
('imaginary', False),
|
| 496 |
+
('infinite', False),
|
| 497 |
+
('nonnegative', False),
|
| 498 |
+
('nonpositive', True),
|
| 499 |
+
('nonzero', True),
|
| 500 |
+
('positive', False),
|
| 501 |
+
('prime', False),
|
| 502 |
+
('real', True),
|
| 503 |
+
('zero', False),
|
| 504 |
+
) ),
|
| 505 |
+
),
|
| 506 |
+
# Implications of negative = False:
|
| 507 |
+
(('negative', False), set( (
|
| 508 |
+
) ),
|
| 509 |
+
),
|
| 510 |
+
# Implications of noninteger = True:
|
| 511 |
+
(('noninteger', True), set( (
|
| 512 |
+
('commutative', True),
|
| 513 |
+
('composite', False),
|
| 514 |
+
('even', False),
|
| 515 |
+
('extended_nonzero', True),
|
| 516 |
+
('extended_real', True),
|
| 517 |
+
('imaginary', False),
|
| 518 |
+
('integer', False),
|
| 519 |
+
('odd', False),
|
| 520 |
+
('prime', False),
|
| 521 |
+
('zero', False),
|
| 522 |
+
) ),
|
| 523 |
+
),
|
| 524 |
+
# Implications of noninteger = False:
|
| 525 |
+
(('noninteger', False), set( (
|
| 526 |
+
) ),
|
| 527 |
+
),
|
| 528 |
+
# Implications of nonnegative = True:
|
| 529 |
+
(('nonnegative', True), set( (
|
| 530 |
+
('commutative', True),
|
| 531 |
+
('complex', True),
|
| 532 |
+
('extended_negative', False),
|
| 533 |
+
('extended_nonnegative', True),
|
| 534 |
+
('extended_real', True),
|
| 535 |
+
('finite', True),
|
| 536 |
+
('hermitian', True),
|
| 537 |
+
('imaginary', False),
|
| 538 |
+
('infinite', False),
|
| 539 |
+
('negative', False),
|
| 540 |
+
('real', True),
|
| 541 |
+
) ),
|
| 542 |
+
),
|
| 543 |
+
# Implications of nonnegative = False:
|
| 544 |
+
(('nonnegative', False), set( (
|
| 545 |
+
('composite', False),
|
| 546 |
+
('positive', False),
|
| 547 |
+
('prime', False),
|
| 548 |
+
('zero', False),
|
| 549 |
+
) ),
|
| 550 |
+
),
|
| 551 |
+
# Implications of nonpositive = True:
|
| 552 |
+
(('nonpositive', True), set( (
|
| 553 |
+
('commutative', True),
|
| 554 |
+
('complex', True),
|
| 555 |
+
('composite', False),
|
| 556 |
+
('extended_nonpositive', True),
|
| 557 |
+
('extended_positive', False),
|
| 558 |
+
('extended_real', True),
|
| 559 |
+
('finite', True),
|
| 560 |
+
('hermitian', True),
|
| 561 |
+
('imaginary', False),
|
| 562 |
+
('infinite', False),
|
| 563 |
+
('positive', False),
|
| 564 |
+
('prime', False),
|
| 565 |
+
('real', True),
|
| 566 |
+
) ),
|
| 567 |
+
),
|
| 568 |
+
# Implications of nonpositive = False:
|
| 569 |
+
(('nonpositive', False), set( (
|
| 570 |
+
('negative', False),
|
| 571 |
+
('zero', False),
|
| 572 |
+
) ),
|
| 573 |
+
),
|
| 574 |
+
# Implications of nonzero = True:
|
| 575 |
+
(('nonzero', True), set( (
|
| 576 |
+
('commutative', True),
|
| 577 |
+
('complex', True),
|
| 578 |
+
('extended_nonzero', True),
|
| 579 |
+
('extended_real', True),
|
| 580 |
+
('finite', True),
|
| 581 |
+
('hermitian', True),
|
| 582 |
+
('imaginary', False),
|
| 583 |
+
('infinite', False),
|
| 584 |
+
('real', True),
|
| 585 |
+
('zero', False),
|
| 586 |
+
) ),
|
| 587 |
+
),
|
| 588 |
+
# Implications of nonzero = False:
|
| 589 |
+
(('nonzero', False), set( (
|
| 590 |
+
('composite', False),
|
| 591 |
+
('negative', False),
|
| 592 |
+
('positive', False),
|
| 593 |
+
('prime', False),
|
| 594 |
+
) ),
|
| 595 |
+
),
|
| 596 |
+
# Implications of odd = True:
|
| 597 |
+
(('odd', True), set( (
|
| 598 |
+
('algebraic', True),
|
| 599 |
+
('commutative', True),
|
| 600 |
+
('complex', True),
|
| 601 |
+
('even', False),
|
| 602 |
+
('extended_nonzero', True),
|
| 603 |
+
('extended_real', True),
|
| 604 |
+
('finite', True),
|
| 605 |
+
('hermitian', True),
|
| 606 |
+
('imaginary', False),
|
| 607 |
+
('infinite', False),
|
| 608 |
+
('integer', True),
|
| 609 |
+
('irrational', False),
|
| 610 |
+
('noninteger', False),
|
| 611 |
+
('nonzero', True),
|
| 612 |
+
('rational', True),
|
| 613 |
+
('real', True),
|
| 614 |
+
('transcendental', False),
|
| 615 |
+
('zero', False),
|
| 616 |
+
) ),
|
| 617 |
+
),
|
| 618 |
+
# Implications of odd = False:
|
| 619 |
+
(('odd', False), set( (
|
| 620 |
+
) ),
|
| 621 |
+
),
|
| 622 |
+
# Implications of positive = True:
|
| 623 |
+
(('positive', True), set( (
|
| 624 |
+
('commutative', True),
|
| 625 |
+
('complex', True),
|
| 626 |
+
('extended_negative', False),
|
| 627 |
+
('extended_nonnegative', True),
|
| 628 |
+
('extended_nonpositive', False),
|
| 629 |
+
('extended_nonzero', True),
|
| 630 |
+
('extended_positive', True),
|
| 631 |
+
('extended_real', True),
|
| 632 |
+
('finite', True),
|
| 633 |
+
('hermitian', True),
|
| 634 |
+
('imaginary', False),
|
| 635 |
+
('infinite', False),
|
| 636 |
+
('negative', False),
|
| 637 |
+
('nonnegative', True),
|
| 638 |
+
('nonpositive', False),
|
| 639 |
+
('nonzero', True),
|
| 640 |
+
('real', True),
|
| 641 |
+
('zero', False),
|
| 642 |
+
) ),
|
| 643 |
+
),
|
| 644 |
+
# Implications of positive = False:
|
| 645 |
+
(('positive', False), set( (
|
| 646 |
+
('composite', False),
|
| 647 |
+
('prime', False),
|
| 648 |
+
) ),
|
| 649 |
+
),
|
| 650 |
+
# Implications of prime = True:
|
| 651 |
+
(('prime', True), set( (
|
| 652 |
+
('algebraic', True),
|
| 653 |
+
('commutative', True),
|
| 654 |
+
('complex', True),
|
| 655 |
+
('composite', False),
|
| 656 |
+
('extended_negative', False),
|
| 657 |
+
('extended_nonnegative', True),
|
| 658 |
+
('extended_nonpositive', False),
|
| 659 |
+
('extended_nonzero', True),
|
| 660 |
+
('extended_positive', True),
|
| 661 |
+
('extended_real', True),
|
| 662 |
+
('finite', True),
|
| 663 |
+
('hermitian', True),
|
| 664 |
+
('imaginary', False),
|
| 665 |
+
('infinite', False),
|
| 666 |
+
('integer', True),
|
| 667 |
+
('irrational', False),
|
| 668 |
+
('negative', False),
|
| 669 |
+
('noninteger', False),
|
| 670 |
+
('nonnegative', True),
|
| 671 |
+
('nonpositive', False),
|
| 672 |
+
('nonzero', True),
|
| 673 |
+
('positive', True),
|
| 674 |
+
('rational', True),
|
| 675 |
+
('real', True),
|
| 676 |
+
('transcendental', False),
|
| 677 |
+
('zero', False),
|
| 678 |
+
) ),
|
| 679 |
+
),
|
| 680 |
+
# Implications of prime = False:
|
| 681 |
+
(('prime', False), set( (
|
| 682 |
+
) ),
|
| 683 |
+
),
|
| 684 |
+
# Implications of rational = True:
|
| 685 |
+
(('rational', True), set( (
|
| 686 |
+
('algebraic', True),
|
| 687 |
+
('commutative', True),
|
| 688 |
+
('complex', True),
|
| 689 |
+
('extended_real', True),
|
| 690 |
+
('finite', True),
|
| 691 |
+
('hermitian', True),
|
| 692 |
+
('imaginary', False),
|
| 693 |
+
('infinite', False),
|
| 694 |
+
('irrational', False),
|
| 695 |
+
('real', True),
|
| 696 |
+
('transcendental', False),
|
| 697 |
+
) ),
|
| 698 |
+
),
|
| 699 |
+
# Implications of rational = False:
|
| 700 |
+
(('rational', False), set( (
|
| 701 |
+
('composite', False),
|
| 702 |
+
('even', False),
|
| 703 |
+
('integer', False),
|
| 704 |
+
('odd', False),
|
| 705 |
+
('prime', False),
|
| 706 |
+
('zero', False),
|
| 707 |
+
) ),
|
| 708 |
+
),
|
| 709 |
+
# Implications of real = True:
|
| 710 |
+
(('real', True), set( (
|
| 711 |
+
('commutative', True),
|
| 712 |
+
('complex', True),
|
| 713 |
+
('extended_real', True),
|
| 714 |
+
('finite', True),
|
| 715 |
+
('hermitian', True),
|
| 716 |
+
('imaginary', False),
|
| 717 |
+
('infinite', False),
|
| 718 |
+
) ),
|
| 719 |
+
),
|
| 720 |
+
# Implications of real = False:
|
| 721 |
+
(('real', False), set( (
|
| 722 |
+
('composite', False),
|
| 723 |
+
('even', False),
|
| 724 |
+
('integer', False),
|
| 725 |
+
('irrational', False),
|
| 726 |
+
('negative', False),
|
| 727 |
+
('nonnegative', False),
|
| 728 |
+
('nonpositive', False),
|
| 729 |
+
('nonzero', False),
|
| 730 |
+
('odd', False),
|
| 731 |
+
('positive', False),
|
| 732 |
+
('prime', False),
|
| 733 |
+
('rational', False),
|
| 734 |
+
('zero', False),
|
| 735 |
+
) ),
|
| 736 |
+
),
|
| 737 |
+
# Implications of transcendental = True:
|
| 738 |
+
(('transcendental', True), set( (
|
| 739 |
+
('algebraic', False),
|
| 740 |
+
('commutative', True),
|
| 741 |
+
('complex', True),
|
| 742 |
+
('composite', False),
|
| 743 |
+
('even', False),
|
| 744 |
+
('finite', True),
|
| 745 |
+
('infinite', False),
|
| 746 |
+
('integer', False),
|
| 747 |
+
('odd', False),
|
| 748 |
+
('prime', False),
|
| 749 |
+
('rational', False),
|
| 750 |
+
('zero', False),
|
| 751 |
+
) ),
|
| 752 |
+
),
|
| 753 |
+
# Implications of transcendental = False:
|
| 754 |
+
(('transcendental', False), set( (
|
| 755 |
+
) ),
|
| 756 |
+
),
|
| 757 |
+
# Implications of zero = True:
|
| 758 |
+
(('zero', True), set( (
|
| 759 |
+
('algebraic', True),
|
| 760 |
+
('commutative', True),
|
| 761 |
+
('complex', True),
|
| 762 |
+
('composite', False),
|
| 763 |
+
('even', True),
|
| 764 |
+
('extended_negative', False),
|
| 765 |
+
('extended_nonnegative', True),
|
| 766 |
+
('extended_nonpositive', True),
|
| 767 |
+
('extended_nonzero', False),
|
| 768 |
+
('extended_positive', False),
|
| 769 |
+
('extended_real', True),
|
| 770 |
+
('finite', True),
|
| 771 |
+
('hermitian', True),
|
| 772 |
+
('imaginary', False),
|
| 773 |
+
('infinite', False),
|
| 774 |
+
('integer', True),
|
| 775 |
+
('irrational', False),
|
| 776 |
+
('negative', False),
|
| 777 |
+
('noninteger', False),
|
| 778 |
+
('nonnegative', True),
|
| 779 |
+
('nonpositive', True),
|
| 780 |
+
('nonzero', False),
|
| 781 |
+
('odd', False),
|
| 782 |
+
('positive', False),
|
| 783 |
+
('prime', False),
|
| 784 |
+
('rational', True),
|
| 785 |
+
('real', True),
|
| 786 |
+
('transcendental', False),
|
| 787 |
+
) ),
|
| 788 |
+
),
|
| 789 |
+
# Implications of zero = False:
|
| 790 |
+
(('zero', False), set( (
|
| 791 |
+
) ),
|
| 792 |
+
),
|
| 793 |
+
] ) # full_implications
|
| 794 |
+
|
| 795 |
+
|
| 796 |
+
prereq = {
|
| 797 |
+
|
| 798 |
+
# facts that could determine the value of algebraic
|
| 799 |
+
'algebraic': {
|
| 800 |
+
'commutative',
|
| 801 |
+
'complex',
|
| 802 |
+
'composite',
|
| 803 |
+
'even',
|
| 804 |
+
'finite',
|
| 805 |
+
'infinite',
|
| 806 |
+
'integer',
|
| 807 |
+
'odd',
|
| 808 |
+
'prime',
|
| 809 |
+
'rational',
|
| 810 |
+
'transcendental',
|
| 811 |
+
'zero',
|
| 812 |
+
},
|
| 813 |
+
|
| 814 |
+
# facts that could determine the value of antihermitian
|
| 815 |
+
'antihermitian': {
|
| 816 |
+
'imaginary',
|
| 817 |
+
},
|
| 818 |
+
|
| 819 |
+
# facts that could determine the value of commutative
|
| 820 |
+
'commutative': {
|
| 821 |
+
'algebraic',
|
| 822 |
+
'complex',
|
| 823 |
+
'composite',
|
| 824 |
+
'even',
|
| 825 |
+
'extended_negative',
|
| 826 |
+
'extended_nonnegative',
|
| 827 |
+
'extended_nonpositive',
|
| 828 |
+
'extended_nonzero',
|
| 829 |
+
'extended_positive',
|
| 830 |
+
'extended_real',
|
| 831 |
+
'imaginary',
|
| 832 |
+
'integer',
|
| 833 |
+
'irrational',
|
| 834 |
+
'negative',
|
| 835 |
+
'noninteger',
|
| 836 |
+
'nonnegative',
|
| 837 |
+
'nonpositive',
|
| 838 |
+
'nonzero',
|
| 839 |
+
'odd',
|
| 840 |
+
'positive',
|
| 841 |
+
'prime',
|
| 842 |
+
'rational',
|
| 843 |
+
'real',
|
| 844 |
+
'transcendental',
|
| 845 |
+
'zero',
|
| 846 |
+
},
|
| 847 |
+
|
| 848 |
+
# facts that could determine the value of complex
|
| 849 |
+
'complex': {
|
| 850 |
+
'algebraic',
|
| 851 |
+
'commutative',
|
| 852 |
+
'composite',
|
| 853 |
+
'even',
|
| 854 |
+
'finite',
|
| 855 |
+
'imaginary',
|
| 856 |
+
'infinite',
|
| 857 |
+
'integer',
|
| 858 |
+
'irrational',
|
| 859 |
+
'negative',
|
| 860 |
+
'nonnegative',
|
| 861 |
+
'nonpositive',
|
| 862 |
+
'nonzero',
|
| 863 |
+
'odd',
|
| 864 |
+
'positive',
|
| 865 |
+
'prime',
|
| 866 |
+
'rational',
|
| 867 |
+
'real',
|
| 868 |
+
'transcendental',
|
| 869 |
+
'zero',
|
| 870 |
+
},
|
| 871 |
+
|
| 872 |
+
# facts that could determine the value of composite
|
| 873 |
+
'composite': {
|
| 874 |
+
'algebraic',
|
| 875 |
+
'commutative',
|
| 876 |
+
'complex',
|
| 877 |
+
'extended_negative',
|
| 878 |
+
'extended_nonnegative',
|
| 879 |
+
'extended_nonpositive',
|
| 880 |
+
'extended_nonzero',
|
| 881 |
+
'extended_positive',
|
| 882 |
+
'extended_real',
|
| 883 |
+
'finite',
|
| 884 |
+
'hermitian',
|
| 885 |
+
'imaginary',
|
| 886 |
+
'infinite',
|
| 887 |
+
'integer',
|
| 888 |
+
'irrational',
|
| 889 |
+
'negative',
|
| 890 |
+
'noninteger',
|
| 891 |
+
'nonnegative',
|
| 892 |
+
'nonpositive',
|
| 893 |
+
'nonzero',
|
| 894 |
+
'positive',
|
| 895 |
+
'prime',
|
| 896 |
+
'rational',
|
| 897 |
+
'real',
|
| 898 |
+
'transcendental',
|
| 899 |
+
'zero',
|
| 900 |
+
},
|
| 901 |
+
|
| 902 |
+
# facts that could determine the value of even
|
| 903 |
+
'even': {
|
| 904 |
+
'algebraic',
|
| 905 |
+
'commutative',
|
| 906 |
+
'complex',
|
| 907 |
+
'extended_real',
|
| 908 |
+
'finite',
|
| 909 |
+
'hermitian',
|
| 910 |
+
'imaginary',
|
| 911 |
+
'infinite',
|
| 912 |
+
'integer',
|
| 913 |
+
'irrational',
|
| 914 |
+
'noninteger',
|
| 915 |
+
'odd',
|
| 916 |
+
'rational',
|
| 917 |
+
'real',
|
| 918 |
+
'transcendental',
|
| 919 |
+
'zero',
|
| 920 |
+
},
|
| 921 |
+
|
| 922 |
+
# facts that could determine the value of extended_negative
|
| 923 |
+
'extended_negative': {
|
| 924 |
+
'commutative',
|
| 925 |
+
'composite',
|
| 926 |
+
'extended_nonnegative',
|
| 927 |
+
'extended_nonpositive',
|
| 928 |
+
'extended_nonzero',
|
| 929 |
+
'extended_positive',
|
| 930 |
+
'extended_real',
|
| 931 |
+
'imaginary',
|
| 932 |
+
'negative',
|
| 933 |
+
'nonnegative',
|
| 934 |
+
'positive',
|
| 935 |
+
'prime',
|
| 936 |
+
'zero',
|
| 937 |
+
},
|
| 938 |
+
|
| 939 |
+
# facts that could determine the value of extended_nonnegative
|
| 940 |
+
'extended_nonnegative': {
|
| 941 |
+
'commutative',
|
| 942 |
+
'composite',
|
| 943 |
+
'extended_negative',
|
| 944 |
+
'extended_positive',
|
| 945 |
+
'extended_real',
|
| 946 |
+
'imaginary',
|
| 947 |
+
'negative',
|
| 948 |
+
'nonnegative',
|
| 949 |
+
'positive',
|
| 950 |
+
'prime',
|
| 951 |
+
'zero',
|
| 952 |
+
},
|
| 953 |
+
|
| 954 |
+
# facts that could determine the value of extended_nonpositive
|
| 955 |
+
'extended_nonpositive': {
|
| 956 |
+
'commutative',
|
| 957 |
+
'composite',
|
| 958 |
+
'extended_negative',
|
| 959 |
+
'extended_positive',
|
| 960 |
+
'extended_real',
|
| 961 |
+
'imaginary',
|
| 962 |
+
'negative',
|
| 963 |
+
'nonpositive',
|
| 964 |
+
'positive',
|
| 965 |
+
'prime',
|
| 966 |
+
'zero',
|
| 967 |
+
},
|
| 968 |
+
|
| 969 |
+
# facts that could determine the value of extended_nonzero
|
| 970 |
+
'extended_nonzero': {
|
| 971 |
+
'commutative',
|
| 972 |
+
'composite',
|
| 973 |
+
'extended_negative',
|
| 974 |
+
'extended_positive',
|
| 975 |
+
'extended_real',
|
| 976 |
+
'imaginary',
|
| 977 |
+
'irrational',
|
| 978 |
+
'negative',
|
| 979 |
+
'noninteger',
|
| 980 |
+
'nonzero',
|
| 981 |
+
'odd',
|
| 982 |
+
'positive',
|
| 983 |
+
'prime',
|
| 984 |
+
'zero',
|
| 985 |
+
},
|
| 986 |
+
|
| 987 |
+
# facts that could determine the value of extended_positive
|
| 988 |
+
'extended_positive': {
|
| 989 |
+
'commutative',
|
| 990 |
+
'composite',
|
| 991 |
+
'extended_negative',
|
| 992 |
+
'extended_nonnegative',
|
| 993 |
+
'extended_nonpositive',
|
| 994 |
+
'extended_nonzero',
|
| 995 |
+
'extended_real',
|
| 996 |
+
'imaginary',
|
| 997 |
+
'negative',
|
| 998 |
+
'nonpositive',
|
| 999 |
+
'positive',
|
| 1000 |
+
'prime',
|
| 1001 |
+
'zero',
|
| 1002 |
+
},
|
| 1003 |
+
|
| 1004 |
+
# facts that could determine the value of extended_real
|
| 1005 |
+
'extended_real': {
|
| 1006 |
+
'commutative',
|
| 1007 |
+
'composite',
|
| 1008 |
+
'even',
|
| 1009 |
+
'extended_negative',
|
| 1010 |
+
'extended_nonnegative',
|
| 1011 |
+
'extended_nonpositive',
|
| 1012 |
+
'extended_nonzero',
|
| 1013 |
+
'extended_positive',
|
| 1014 |
+
'imaginary',
|
| 1015 |
+
'integer',
|
| 1016 |
+
'irrational',
|
| 1017 |
+
'negative',
|
| 1018 |
+
'noninteger',
|
| 1019 |
+
'nonnegative',
|
| 1020 |
+
'nonpositive',
|
| 1021 |
+
'nonzero',
|
| 1022 |
+
'odd',
|
| 1023 |
+
'positive',
|
| 1024 |
+
'prime',
|
| 1025 |
+
'rational',
|
| 1026 |
+
'real',
|
| 1027 |
+
'zero',
|
| 1028 |
+
},
|
| 1029 |
+
|
| 1030 |
+
# facts that could determine the value of finite
|
| 1031 |
+
'finite': {
|
| 1032 |
+
'algebraic',
|
| 1033 |
+
'complex',
|
| 1034 |
+
'composite',
|
| 1035 |
+
'even',
|
| 1036 |
+
'imaginary',
|
| 1037 |
+
'infinite',
|
| 1038 |
+
'integer',
|
| 1039 |
+
'irrational',
|
| 1040 |
+
'negative',
|
| 1041 |
+
'nonnegative',
|
| 1042 |
+
'nonpositive',
|
| 1043 |
+
'nonzero',
|
| 1044 |
+
'odd',
|
| 1045 |
+
'positive',
|
| 1046 |
+
'prime',
|
| 1047 |
+
'rational',
|
| 1048 |
+
'real',
|
| 1049 |
+
'transcendental',
|
| 1050 |
+
'zero',
|
| 1051 |
+
},
|
| 1052 |
+
|
| 1053 |
+
# facts that could determine the value of hermitian
|
| 1054 |
+
'hermitian': {
|
| 1055 |
+
'composite',
|
| 1056 |
+
'even',
|
| 1057 |
+
'integer',
|
| 1058 |
+
'irrational',
|
| 1059 |
+
'negative',
|
| 1060 |
+
'nonnegative',
|
| 1061 |
+
'nonpositive',
|
| 1062 |
+
'nonzero',
|
| 1063 |
+
'odd',
|
| 1064 |
+
'positive',
|
| 1065 |
+
'prime',
|
| 1066 |
+
'rational',
|
| 1067 |
+
'real',
|
| 1068 |
+
'zero',
|
| 1069 |
+
},
|
| 1070 |
+
|
| 1071 |
+
# facts that could determine the value of imaginary
|
| 1072 |
+
'imaginary': {
|
| 1073 |
+
'antihermitian',
|
| 1074 |
+
'commutative',
|
| 1075 |
+
'complex',
|
| 1076 |
+
'composite',
|
| 1077 |
+
'even',
|
| 1078 |
+
'extended_negative',
|
| 1079 |
+
'extended_nonnegative',
|
| 1080 |
+
'extended_nonpositive',
|
| 1081 |
+
'extended_nonzero',
|
| 1082 |
+
'extended_positive',
|
| 1083 |
+
'extended_real',
|
| 1084 |
+
'finite',
|
| 1085 |
+
'infinite',
|
| 1086 |
+
'integer',
|
| 1087 |
+
'irrational',
|
| 1088 |
+
'negative',
|
| 1089 |
+
'noninteger',
|
| 1090 |
+
'nonnegative',
|
| 1091 |
+
'nonpositive',
|
| 1092 |
+
'nonzero',
|
| 1093 |
+
'odd',
|
| 1094 |
+
'positive',
|
| 1095 |
+
'prime',
|
| 1096 |
+
'rational',
|
| 1097 |
+
'real',
|
| 1098 |
+
'zero',
|
| 1099 |
+
},
|
| 1100 |
+
|
| 1101 |
+
# facts that could determine the value of infinite
|
| 1102 |
+
'infinite': {
|
| 1103 |
+
'algebraic',
|
| 1104 |
+
'complex',
|
| 1105 |
+
'composite',
|
| 1106 |
+
'even',
|
| 1107 |
+
'finite',
|
| 1108 |
+
'imaginary',
|
| 1109 |
+
'integer',
|
| 1110 |
+
'irrational',
|
| 1111 |
+
'negative',
|
| 1112 |
+
'nonnegative',
|
| 1113 |
+
'nonpositive',
|
| 1114 |
+
'nonzero',
|
| 1115 |
+
'odd',
|
| 1116 |
+
'positive',
|
| 1117 |
+
'prime',
|
| 1118 |
+
'rational',
|
| 1119 |
+
'real',
|
| 1120 |
+
'transcendental',
|
| 1121 |
+
'zero',
|
| 1122 |
+
},
|
| 1123 |
+
|
| 1124 |
+
# facts that could determine the value of integer
|
| 1125 |
+
'integer': {
|
| 1126 |
+
'algebraic',
|
| 1127 |
+
'commutative',
|
| 1128 |
+
'complex',
|
| 1129 |
+
'composite',
|
| 1130 |
+
'even',
|
| 1131 |
+
'extended_real',
|
| 1132 |
+
'finite',
|
| 1133 |
+
'hermitian',
|
| 1134 |
+
'imaginary',
|
| 1135 |
+
'infinite',
|
| 1136 |
+
'irrational',
|
| 1137 |
+
'noninteger',
|
| 1138 |
+
'odd',
|
| 1139 |
+
'prime',
|
| 1140 |
+
'rational',
|
| 1141 |
+
'real',
|
| 1142 |
+
'transcendental',
|
| 1143 |
+
'zero',
|
| 1144 |
+
},
|
| 1145 |
+
|
| 1146 |
+
# facts that could determine the value of irrational
|
| 1147 |
+
'irrational': {
|
| 1148 |
+
'commutative',
|
| 1149 |
+
'complex',
|
| 1150 |
+
'composite',
|
| 1151 |
+
'even',
|
| 1152 |
+
'extended_real',
|
| 1153 |
+
'finite',
|
| 1154 |
+
'hermitian',
|
| 1155 |
+
'imaginary',
|
| 1156 |
+
'infinite',
|
| 1157 |
+
'integer',
|
| 1158 |
+
'odd',
|
| 1159 |
+
'prime',
|
| 1160 |
+
'rational',
|
| 1161 |
+
'real',
|
| 1162 |
+
'zero',
|
| 1163 |
+
},
|
| 1164 |
+
|
| 1165 |
+
# facts that could determine the value of negative
|
| 1166 |
+
'negative': {
|
| 1167 |
+
'commutative',
|
| 1168 |
+
'complex',
|
| 1169 |
+
'composite',
|
| 1170 |
+
'extended_negative',
|
| 1171 |
+
'extended_nonnegative',
|
| 1172 |
+
'extended_nonpositive',
|
| 1173 |
+
'extended_nonzero',
|
| 1174 |
+
'extended_positive',
|
| 1175 |
+
'extended_real',
|
| 1176 |
+
'finite',
|
| 1177 |
+
'hermitian',
|
| 1178 |
+
'imaginary',
|
| 1179 |
+
'infinite',
|
| 1180 |
+
'nonnegative',
|
| 1181 |
+
'nonpositive',
|
| 1182 |
+
'nonzero',
|
| 1183 |
+
'positive',
|
| 1184 |
+
'prime',
|
| 1185 |
+
'real',
|
| 1186 |
+
'zero',
|
| 1187 |
+
},
|
| 1188 |
+
|
| 1189 |
+
# facts that could determine the value of noninteger
|
| 1190 |
+
'noninteger': {
|
| 1191 |
+
'commutative',
|
| 1192 |
+
'composite',
|
| 1193 |
+
'even',
|
| 1194 |
+
'extended_real',
|
| 1195 |
+
'imaginary',
|
| 1196 |
+
'integer',
|
| 1197 |
+
'irrational',
|
| 1198 |
+
'odd',
|
| 1199 |
+
'prime',
|
| 1200 |
+
'zero',
|
| 1201 |
+
},
|
| 1202 |
+
|
| 1203 |
+
# facts that could determine the value of nonnegative
|
| 1204 |
+
'nonnegative': {
|
| 1205 |
+
'commutative',
|
| 1206 |
+
'complex',
|
| 1207 |
+
'composite',
|
| 1208 |
+
'extended_negative',
|
| 1209 |
+
'extended_nonnegative',
|
| 1210 |
+
'extended_real',
|
| 1211 |
+
'finite',
|
| 1212 |
+
'hermitian',
|
| 1213 |
+
'imaginary',
|
| 1214 |
+
'infinite',
|
| 1215 |
+
'negative',
|
| 1216 |
+
'positive',
|
| 1217 |
+
'prime',
|
| 1218 |
+
'real',
|
| 1219 |
+
'zero',
|
| 1220 |
+
},
|
| 1221 |
+
|
| 1222 |
+
# facts that could determine the value of nonpositive
|
| 1223 |
+
'nonpositive': {
|
| 1224 |
+
'commutative',
|
| 1225 |
+
'complex',
|
| 1226 |
+
'composite',
|
| 1227 |
+
'extended_nonpositive',
|
| 1228 |
+
'extended_positive',
|
| 1229 |
+
'extended_real',
|
| 1230 |
+
'finite',
|
| 1231 |
+
'hermitian',
|
| 1232 |
+
'imaginary',
|
| 1233 |
+
'infinite',
|
| 1234 |
+
'negative',
|
| 1235 |
+
'positive',
|
| 1236 |
+
'prime',
|
| 1237 |
+
'real',
|
| 1238 |
+
'zero',
|
| 1239 |
+
},
|
| 1240 |
+
|
| 1241 |
+
# facts that could determine the value of nonzero
|
| 1242 |
+
'nonzero': {
|
| 1243 |
+
'commutative',
|
| 1244 |
+
'complex',
|
| 1245 |
+
'composite',
|
| 1246 |
+
'extended_nonzero',
|
| 1247 |
+
'extended_real',
|
| 1248 |
+
'finite',
|
| 1249 |
+
'hermitian',
|
| 1250 |
+
'imaginary',
|
| 1251 |
+
'infinite',
|
| 1252 |
+
'irrational',
|
| 1253 |
+
'negative',
|
| 1254 |
+
'odd',
|
| 1255 |
+
'positive',
|
| 1256 |
+
'prime',
|
| 1257 |
+
'real',
|
| 1258 |
+
'zero',
|
| 1259 |
+
},
|
| 1260 |
+
|
| 1261 |
+
# facts that could determine the value of odd
|
| 1262 |
+
'odd': {
|
| 1263 |
+
'algebraic',
|
| 1264 |
+
'commutative',
|
| 1265 |
+
'complex',
|
| 1266 |
+
'even',
|
| 1267 |
+
'extended_real',
|
| 1268 |
+
'finite',
|
| 1269 |
+
'hermitian',
|
| 1270 |
+
'imaginary',
|
| 1271 |
+
'infinite',
|
| 1272 |
+
'integer',
|
| 1273 |
+
'irrational',
|
| 1274 |
+
'noninteger',
|
| 1275 |
+
'rational',
|
| 1276 |
+
'real',
|
| 1277 |
+
'transcendental',
|
| 1278 |
+
'zero',
|
| 1279 |
+
},
|
| 1280 |
+
|
| 1281 |
+
# facts that could determine the value of positive
|
| 1282 |
+
'positive': {
|
| 1283 |
+
'commutative',
|
| 1284 |
+
'complex',
|
| 1285 |
+
'composite',
|
| 1286 |
+
'extended_negative',
|
| 1287 |
+
'extended_nonnegative',
|
| 1288 |
+
'extended_nonpositive',
|
| 1289 |
+
'extended_nonzero',
|
| 1290 |
+
'extended_positive',
|
| 1291 |
+
'extended_real',
|
| 1292 |
+
'finite',
|
| 1293 |
+
'hermitian',
|
| 1294 |
+
'imaginary',
|
| 1295 |
+
'infinite',
|
| 1296 |
+
'negative',
|
| 1297 |
+
'nonnegative',
|
| 1298 |
+
'nonpositive',
|
| 1299 |
+
'nonzero',
|
| 1300 |
+
'prime',
|
| 1301 |
+
'real',
|
| 1302 |
+
'zero',
|
| 1303 |
+
},
|
| 1304 |
+
|
| 1305 |
+
# facts that could determine the value of prime
|
| 1306 |
+
'prime': {
|
| 1307 |
+
'algebraic',
|
| 1308 |
+
'commutative',
|
| 1309 |
+
'complex',
|
| 1310 |
+
'composite',
|
| 1311 |
+
'extended_negative',
|
| 1312 |
+
'extended_nonnegative',
|
| 1313 |
+
'extended_nonpositive',
|
| 1314 |
+
'extended_nonzero',
|
| 1315 |
+
'extended_positive',
|
| 1316 |
+
'extended_real',
|
| 1317 |
+
'finite',
|
| 1318 |
+
'hermitian',
|
| 1319 |
+
'imaginary',
|
| 1320 |
+
'infinite',
|
| 1321 |
+
'integer',
|
| 1322 |
+
'irrational',
|
| 1323 |
+
'negative',
|
| 1324 |
+
'noninteger',
|
| 1325 |
+
'nonnegative',
|
| 1326 |
+
'nonpositive',
|
| 1327 |
+
'nonzero',
|
| 1328 |
+
'positive',
|
| 1329 |
+
'rational',
|
| 1330 |
+
'real',
|
| 1331 |
+
'transcendental',
|
| 1332 |
+
'zero',
|
| 1333 |
+
},
|
| 1334 |
+
|
| 1335 |
+
# facts that could determine the value of rational
|
| 1336 |
+
'rational': {
|
| 1337 |
+
'algebraic',
|
| 1338 |
+
'commutative',
|
| 1339 |
+
'complex',
|
| 1340 |
+
'composite',
|
| 1341 |
+
'even',
|
| 1342 |
+
'extended_real',
|
| 1343 |
+
'finite',
|
| 1344 |
+
'hermitian',
|
| 1345 |
+
'imaginary',
|
| 1346 |
+
'infinite',
|
| 1347 |
+
'integer',
|
| 1348 |
+
'irrational',
|
| 1349 |
+
'odd',
|
| 1350 |
+
'prime',
|
| 1351 |
+
'real',
|
| 1352 |
+
'transcendental',
|
| 1353 |
+
'zero',
|
| 1354 |
+
},
|
| 1355 |
+
|
| 1356 |
+
# facts that could determine the value of real
|
| 1357 |
+
'real': {
|
| 1358 |
+
'commutative',
|
| 1359 |
+
'complex',
|
| 1360 |
+
'composite',
|
| 1361 |
+
'even',
|
| 1362 |
+
'extended_real',
|
| 1363 |
+
'finite',
|
| 1364 |
+
'hermitian',
|
| 1365 |
+
'imaginary',
|
| 1366 |
+
'infinite',
|
| 1367 |
+
'integer',
|
| 1368 |
+
'irrational',
|
| 1369 |
+
'negative',
|
| 1370 |
+
'nonnegative',
|
| 1371 |
+
'nonpositive',
|
| 1372 |
+
'nonzero',
|
| 1373 |
+
'odd',
|
| 1374 |
+
'positive',
|
| 1375 |
+
'prime',
|
| 1376 |
+
'rational',
|
| 1377 |
+
'zero',
|
| 1378 |
+
},
|
| 1379 |
+
|
| 1380 |
+
# facts that could determine the value of transcendental
|
| 1381 |
+
'transcendental': {
|
| 1382 |
+
'algebraic',
|
| 1383 |
+
'commutative',
|
| 1384 |
+
'complex',
|
| 1385 |
+
'composite',
|
| 1386 |
+
'even',
|
| 1387 |
+
'finite',
|
| 1388 |
+
'infinite',
|
| 1389 |
+
'integer',
|
| 1390 |
+
'odd',
|
| 1391 |
+
'prime',
|
| 1392 |
+
'rational',
|
| 1393 |
+
'zero',
|
| 1394 |
+
},
|
| 1395 |
+
|
| 1396 |
+
# facts that could determine the value of zero
|
| 1397 |
+
'zero': {
|
| 1398 |
+
'algebraic',
|
| 1399 |
+
'commutative',
|
| 1400 |
+
'complex',
|
| 1401 |
+
'composite',
|
| 1402 |
+
'even',
|
| 1403 |
+
'extended_negative',
|
| 1404 |
+
'extended_nonnegative',
|
| 1405 |
+
'extended_nonpositive',
|
| 1406 |
+
'extended_nonzero',
|
| 1407 |
+
'extended_positive',
|
| 1408 |
+
'extended_real',
|
| 1409 |
+
'finite',
|
| 1410 |
+
'hermitian',
|
| 1411 |
+
'imaginary',
|
| 1412 |
+
'infinite',
|
| 1413 |
+
'integer',
|
| 1414 |
+
'irrational',
|
| 1415 |
+
'negative',
|
| 1416 |
+
'noninteger',
|
| 1417 |
+
'nonnegative',
|
| 1418 |
+
'nonpositive',
|
| 1419 |
+
'nonzero',
|
| 1420 |
+
'odd',
|
| 1421 |
+
'positive',
|
| 1422 |
+
'prime',
|
| 1423 |
+
'rational',
|
| 1424 |
+
'real',
|
| 1425 |
+
'transcendental',
|
| 1426 |
+
},
|
| 1427 |
+
|
| 1428 |
+
} # prereq
|
| 1429 |
+
|
| 1430 |
+
|
| 1431 |
+
# Note: the order of the beta rules is used in the beta_triggers
|
| 1432 |
+
beta_rules = [
|
| 1433 |
+
|
| 1434 |
+
# Rules implying composite = True
|
| 1435 |
+
({('even', True), ('positive', True), ('prime', False)},
|
| 1436 |
+
('composite', True)),
|
| 1437 |
+
|
| 1438 |
+
# Rules implying even = False
|
| 1439 |
+
({('composite', False), ('positive', True), ('prime', False)},
|
| 1440 |
+
('even', False)),
|
| 1441 |
+
|
| 1442 |
+
# Rules implying even = True
|
| 1443 |
+
({('integer', True), ('odd', False)},
|
| 1444 |
+
('even', True)),
|
| 1445 |
+
|
| 1446 |
+
# Rules implying extended_negative = True
|
| 1447 |
+
({('extended_positive', False), ('extended_real', True), ('zero', False)},
|
| 1448 |
+
('extended_negative', True)),
|
| 1449 |
+
({('extended_nonpositive', True), ('extended_nonzero', True)},
|
| 1450 |
+
('extended_negative', True)),
|
| 1451 |
+
|
| 1452 |
+
# Rules implying extended_nonnegative = True
|
| 1453 |
+
({('extended_negative', False), ('extended_real', True)},
|
| 1454 |
+
('extended_nonnegative', True)),
|
| 1455 |
+
|
| 1456 |
+
# Rules implying extended_nonpositive = True
|
| 1457 |
+
({('extended_positive', False), ('extended_real', True)},
|
| 1458 |
+
('extended_nonpositive', True)),
|
| 1459 |
+
|
| 1460 |
+
# Rules implying extended_nonzero = True
|
| 1461 |
+
({('extended_real', True), ('zero', False)},
|
| 1462 |
+
('extended_nonzero', True)),
|
| 1463 |
+
|
| 1464 |
+
# Rules implying extended_positive = True
|
| 1465 |
+
({('extended_negative', False), ('extended_real', True), ('zero', False)},
|
| 1466 |
+
('extended_positive', True)),
|
| 1467 |
+
({('extended_nonnegative', True), ('extended_nonzero', True)},
|
| 1468 |
+
('extended_positive', True)),
|
| 1469 |
+
|
| 1470 |
+
# Rules implying extended_real = False
|
| 1471 |
+
({('infinite', False), ('real', False)},
|
| 1472 |
+
('extended_real', False)),
|
| 1473 |
+
({('extended_negative', False), ('extended_positive', False), ('zero', False)},
|
| 1474 |
+
('extended_real', False)),
|
| 1475 |
+
|
| 1476 |
+
# Rules implying infinite = True
|
| 1477 |
+
({('extended_real', True), ('real', False)},
|
| 1478 |
+
('infinite', True)),
|
| 1479 |
+
|
| 1480 |
+
# Rules implying irrational = True
|
| 1481 |
+
({('rational', False), ('real', True)},
|
| 1482 |
+
('irrational', True)),
|
| 1483 |
+
|
| 1484 |
+
# Rules implying negative = True
|
| 1485 |
+
({('positive', False), ('real', True), ('zero', False)},
|
| 1486 |
+
('negative', True)),
|
| 1487 |
+
({('nonpositive', True), ('nonzero', True)},
|
| 1488 |
+
('negative', True)),
|
| 1489 |
+
({('extended_negative', True), ('finite', True)},
|
| 1490 |
+
('negative', True)),
|
| 1491 |
+
|
| 1492 |
+
# Rules implying noninteger = True
|
| 1493 |
+
({('extended_real', True), ('integer', False)},
|
| 1494 |
+
('noninteger', True)),
|
| 1495 |
+
|
| 1496 |
+
# Rules implying nonnegative = True
|
| 1497 |
+
({('negative', False), ('real', True)},
|
| 1498 |
+
('nonnegative', True)),
|
| 1499 |
+
({('extended_nonnegative', True), ('finite', True)},
|
| 1500 |
+
('nonnegative', True)),
|
| 1501 |
+
|
| 1502 |
+
# Rules implying nonpositive = True
|
| 1503 |
+
({('positive', False), ('real', True)},
|
| 1504 |
+
('nonpositive', True)),
|
| 1505 |
+
({('extended_nonpositive', True), ('finite', True)},
|
| 1506 |
+
('nonpositive', True)),
|
| 1507 |
+
|
| 1508 |
+
# Rules implying nonzero = True
|
| 1509 |
+
({('extended_nonzero', True), ('finite', True)},
|
| 1510 |
+
('nonzero', True)),
|
| 1511 |
+
|
| 1512 |
+
# Rules implying odd = True
|
| 1513 |
+
({('even', False), ('integer', True)},
|
| 1514 |
+
('odd', True)),
|
| 1515 |
+
|
| 1516 |
+
# Rules implying positive = False
|
| 1517 |
+
({('composite', False), ('even', True), ('prime', False)},
|
| 1518 |
+
('positive', False)),
|
| 1519 |
+
|
| 1520 |
+
# Rules implying positive = True
|
| 1521 |
+
({('negative', False), ('real', True), ('zero', False)},
|
| 1522 |
+
('positive', True)),
|
| 1523 |
+
({('nonnegative', True), ('nonzero', True)},
|
| 1524 |
+
('positive', True)),
|
| 1525 |
+
({('extended_positive', True), ('finite', True)},
|
| 1526 |
+
('positive', True)),
|
| 1527 |
+
|
| 1528 |
+
# Rules implying prime = True
|
| 1529 |
+
({('composite', False), ('even', True), ('positive', True)},
|
| 1530 |
+
('prime', True)),
|
| 1531 |
+
|
| 1532 |
+
# Rules implying real = False
|
| 1533 |
+
({('negative', False), ('positive', False), ('zero', False)},
|
| 1534 |
+
('real', False)),
|
| 1535 |
+
|
| 1536 |
+
# Rules implying real = True
|
| 1537 |
+
({('extended_real', True), ('infinite', False)},
|
| 1538 |
+
('real', True)),
|
| 1539 |
+
({('extended_real', True), ('finite', True)},
|
| 1540 |
+
('real', True)),
|
| 1541 |
+
|
| 1542 |
+
# Rules implying transcendental = True
|
| 1543 |
+
({('algebraic', False), ('complex', True)},
|
| 1544 |
+
('transcendental', True)),
|
| 1545 |
+
|
| 1546 |
+
# Rules implying zero = True
|
| 1547 |
+
({('extended_negative', False), ('extended_positive', False), ('extended_real', True)},
|
| 1548 |
+
('zero', True)),
|
| 1549 |
+
({('negative', False), ('positive', False), ('real', True)},
|
| 1550 |
+
('zero', True)),
|
| 1551 |
+
({('extended_nonnegative', True), ('extended_nonpositive', True)},
|
| 1552 |
+
('zero', True)),
|
| 1553 |
+
({('nonnegative', True), ('nonpositive', True)},
|
| 1554 |
+
('zero', True)),
|
| 1555 |
+
|
| 1556 |
+
] # beta_rules
|
| 1557 |
+
beta_triggers = {
|
| 1558 |
+
('algebraic', False): [32, 11, 3, 8, 29, 14, 25, 13, 17, 7],
|
| 1559 |
+
('algebraic', True): [10, 30, 31, 27, 16, 21, 19, 22],
|
| 1560 |
+
('antihermitian', False): [],
|
| 1561 |
+
('commutative', False): [],
|
| 1562 |
+
('complex', False): [10, 12, 11, 3, 8, 17, 7],
|
| 1563 |
+
('complex', True): [32, 10, 30, 31, 27, 16, 21, 19, 22],
|
| 1564 |
+
('composite', False): [1, 28, 24],
|
| 1565 |
+
('composite', True): [23, 2],
|
| 1566 |
+
('even', False): [23, 11, 3, 8, 29, 14, 25, 7],
|
| 1567 |
+
('even', True): [3, 33, 8, 6, 5, 14, 34, 25, 20, 18, 27, 16, 21, 19, 22, 0, 28, 24, 7],
|
| 1568 |
+
('extended_negative', False): [11, 33, 8, 5, 29, 34, 25, 18],
|
| 1569 |
+
('extended_negative', True): [30, 12, 31, 29, 14, 20, 16, 21, 22, 17],
|
| 1570 |
+
('extended_nonnegative', False): [11, 3, 6, 29, 14, 20, 7],
|
| 1571 |
+
('extended_nonnegative', True): [30, 12, 31, 33, 8, 9, 6, 29, 34, 25, 18, 19, 35, 17, 7],
|
| 1572 |
+
('extended_nonpositive', False): [11, 8, 5, 29, 25, 18, 7],
|
| 1573 |
+
('extended_nonpositive', True): [30, 12, 31, 3, 33, 4, 5, 29, 14, 34, 20, 21, 35, 17, 7],
|
| 1574 |
+
('extended_nonzero', False): [11, 33, 6, 5, 29, 34, 20, 18],
|
| 1575 |
+
('extended_nonzero', True): [30, 12, 31, 3, 8, 4, 9, 6, 5, 29, 14, 25, 22, 17],
|
| 1576 |
+
('extended_positive', False): [11, 3, 33, 6, 29, 14, 34, 20],
|
| 1577 |
+
('extended_positive', True): [30, 12, 31, 29, 25, 18, 27, 19, 22, 17],
|
| 1578 |
+
('extended_real', False): [],
|
| 1579 |
+
('extended_real', True): [30, 12, 31, 3, 33, 8, 6, 5, 17, 7],
|
| 1580 |
+
('finite', False): [11, 3, 8, 17, 7],
|
| 1581 |
+
('finite', True): [10, 30, 31, 27, 16, 21, 19, 22],
|
| 1582 |
+
('hermitian', False): [10, 12, 11, 3, 8, 17, 7],
|
| 1583 |
+
('imaginary', True): [32],
|
| 1584 |
+
('infinite', False): [10, 30, 31, 27, 16, 21, 19, 22],
|
| 1585 |
+
('infinite', True): [11, 3, 8, 17, 7],
|
| 1586 |
+
('integer', False): [11, 3, 8, 29, 14, 25, 17, 7],
|
| 1587 |
+
('integer', True): [23, 2, 3, 33, 8, 6, 5, 14, 34, 25, 20, 18, 27, 16, 21, 19, 22, 7],
|
| 1588 |
+
('irrational', True): [32, 3, 8, 4, 9, 6, 5, 14, 25, 15, 26, 20, 18, 27, 16, 21, 19],
|
| 1589 |
+
('negative', False): [29, 34, 25, 18],
|
| 1590 |
+
('negative', True): [32, 13, 17],
|
| 1591 |
+
('noninteger', True): [30, 12, 31, 3, 8, 4, 9, 6, 5, 29, 14, 25, 22],
|
| 1592 |
+
('nonnegative', False): [11, 3, 8, 29, 14, 20, 7],
|
| 1593 |
+
('nonnegative', True): [32, 33, 8, 9, 6, 34, 25, 26, 20, 27, 21, 22, 35, 36, 13, 17, 7],
|
| 1594 |
+
('nonpositive', False): [11, 3, 8, 29, 25, 18, 7],
|
| 1595 |
+
('nonpositive', True): [32, 3, 33, 4, 5, 14, 34, 15, 18, 16, 19, 22, 35, 36, 13, 17, 7],
|
| 1596 |
+
('nonzero', False): [29, 34, 20, 18],
|
| 1597 |
+
('nonzero', True): [32, 3, 8, 4, 9, 6, 5, 14, 25, 15, 26, 20, 18, 27, 16, 21, 19, 13, 17],
|
| 1598 |
+
('odd', False): [2],
|
| 1599 |
+
('odd', True): [3, 8, 4, 9, 6, 5, 14, 25, 15, 26, 20, 18, 27, 16, 21, 19],
|
| 1600 |
+
('positive', False): [29, 14, 34, 20],
|
| 1601 |
+
('positive', True): [32, 0, 1, 28, 13, 17],
|
| 1602 |
+
('prime', False): [0, 1, 24],
|
| 1603 |
+
('prime', True): [23, 2],
|
| 1604 |
+
('rational', False): [11, 3, 8, 29, 14, 25, 13, 17, 7],
|
| 1605 |
+
('rational', True): [3, 33, 8, 6, 5, 14, 34, 25, 20, 18, 27, 16, 21, 19, 22, 17, 7],
|
| 1606 |
+
('real', False): [10, 12, 11, 3, 8, 17, 7],
|
| 1607 |
+
('real', True): [32, 3, 33, 8, 6, 5, 14, 34, 25, 20, 18, 27, 16, 21, 19, 22, 13, 17, 7],
|
| 1608 |
+
('transcendental', True): [10, 30, 31, 11, 3, 8, 29, 14, 25, 27, 16, 21, 19, 22, 13, 17, 7],
|
| 1609 |
+
('zero', False): [11, 3, 8, 29, 14, 25, 7],
|
| 1610 |
+
('zero', True): [],
|
| 1611 |
+
} # beta_triggers
|
| 1612 |
+
|
| 1613 |
+
|
| 1614 |
+
generated_assumptions = {'defined_facts': defined_facts, 'full_implications': full_implications,
|
| 1615 |
+
'prereq': prereq, 'beta_rules': beta_rules, 'beta_triggers': beta_triggers}
|
shared/package-files/d1/d1329d662c712d603ec70b40670e07729a899a3e17a6bc7566472dcb48134596/blob
ADDED
|
@@ -0,0 +1,120 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import functools
|
| 2 |
+
import os
|
| 3 |
+
import pathlib
|
| 4 |
+
import types
|
| 5 |
+
import warnings
|
| 6 |
+
|
| 7 |
+
from typing import Union, Iterable, ContextManager, BinaryIO, TextIO, Any
|
| 8 |
+
|
| 9 |
+
from . import _common
|
| 10 |
+
|
| 11 |
+
Package = Union[types.ModuleType, str]
|
| 12 |
+
Resource = str
|
| 13 |
+
|
| 14 |
+
|
| 15 |
+
def deprecated(func):
|
| 16 |
+
@functools.wraps(func)
|
| 17 |
+
def wrapper(*args, **kwargs):
|
| 18 |
+
warnings.warn(
|
| 19 |
+
f"{func.__name__} is deprecated. Use files() instead. "
|
| 20 |
+
"Refer to https://importlib-resources.readthedocs.io"
|
| 21 |
+
"/en/latest/using.html#migrating-from-legacy for migration advice.",
|
| 22 |
+
DeprecationWarning,
|
| 23 |
+
stacklevel=2,
|
| 24 |
+
)
|
| 25 |
+
return func(*args, **kwargs)
|
| 26 |
+
|
| 27 |
+
return wrapper
|
| 28 |
+
|
| 29 |
+
|
| 30 |
+
def normalize_path(path: Any) -> str:
|
| 31 |
+
"""Normalize a path by ensuring it is a string.
|
| 32 |
+
|
| 33 |
+
If the resulting string contains path separators, an exception is raised.
|
| 34 |
+
"""
|
| 35 |
+
str_path = str(path)
|
| 36 |
+
parent, file_name = os.path.split(str_path)
|
| 37 |
+
if parent:
|
| 38 |
+
raise ValueError(f'{path!r} must be only a file name')
|
| 39 |
+
return file_name
|
| 40 |
+
|
| 41 |
+
|
| 42 |
+
@deprecated
|
| 43 |
+
def open_binary(package: Package, resource: Resource) -> BinaryIO:
|
| 44 |
+
"""Return a file-like object opened for binary reading of the resource."""
|
| 45 |
+
return (_common.files(package) / normalize_path(resource)).open('rb')
|
| 46 |
+
|
| 47 |
+
|
| 48 |
+
@deprecated
|
| 49 |
+
def read_binary(package: Package, resource: Resource) -> bytes:
|
| 50 |
+
"""Return the binary contents of the resource."""
|
| 51 |
+
return (_common.files(package) / normalize_path(resource)).read_bytes()
|
| 52 |
+
|
| 53 |
+
|
| 54 |
+
@deprecated
|
| 55 |
+
def open_text(
|
| 56 |
+
package: Package,
|
| 57 |
+
resource: Resource,
|
| 58 |
+
encoding: str = 'utf-8',
|
| 59 |
+
errors: str = 'strict',
|
| 60 |
+
) -> TextIO:
|
| 61 |
+
"""Return a file-like object opened for text reading of the resource."""
|
| 62 |
+
return (_common.files(package) / normalize_path(resource)).open(
|
| 63 |
+
'r', encoding=encoding, errors=errors
|
| 64 |
+
)
|
| 65 |
+
|
| 66 |
+
|
| 67 |
+
@deprecated
|
| 68 |
+
def read_text(
|
| 69 |
+
package: Package,
|
| 70 |
+
resource: Resource,
|
| 71 |
+
encoding: str = 'utf-8',
|
| 72 |
+
errors: str = 'strict',
|
| 73 |
+
) -> str:
|
| 74 |
+
"""Return the decoded string of the resource.
|
| 75 |
+
|
| 76 |
+
The decoding-related arguments have the same semantics as those of
|
| 77 |
+
bytes.decode().
|
| 78 |
+
"""
|
| 79 |
+
with open_text(package, resource, encoding, errors) as fp:
|
| 80 |
+
return fp.read()
|
| 81 |
+
|
| 82 |
+
|
| 83 |
+
@deprecated
|
| 84 |
+
def contents(package: Package) -> Iterable[str]:
|
| 85 |
+
"""Return an iterable of entries in `package`.
|
| 86 |
+
|
| 87 |
+
Note that not all entries are resources. Specifically, directories are
|
| 88 |
+
not considered resources. Use `is_resource()` on each entry returned here
|
| 89 |
+
to check if it is a resource or not.
|
| 90 |
+
"""
|
| 91 |
+
return [path.name for path in _common.files(package).iterdir()]
|
| 92 |
+
|
| 93 |
+
|
| 94 |
+
@deprecated
|
| 95 |
+
def is_resource(package: Package, name: str) -> bool:
|
| 96 |
+
"""True if `name` is a resource inside `package`.
|
| 97 |
+
|
| 98 |
+
Directories are *not* resources.
|
| 99 |
+
"""
|
| 100 |
+
resource = normalize_path(name)
|
| 101 |
+
return any(
|
| 102 |
+
traversable.name == resource and traversable.is_file()
|
| 103 |
+
for traversable in _common.files(package).iterdir()
|
| 104 |
+
)
|
| 105 |
+
|
| 106 |
+
|
| 107 |
+
@deprecated
|
| 108 |
+
def path(
|
| 109 |
+
package: Package,
|
| 110 |
+
resource: Resource,
|
| 111 |
+
) -> ContextManager[pathlib.Path]:
|
| 112 |
+
"""A context manager providing a file path object to the resource.
|
| 113 |
+
|
| 114 |
+
If the resource does not already exist on its own on the file system,
|
| 115 |
+
a temporary file will be created. If the file was created, the file
|
| 116 |
+
will be deleted upon exiting the context manager (no exception is
|
| 117 |
+
raised if the file was deleted prior to the context manager
|
| 118 |
+
exiting).
|
| 119 |
+
"""
|
| 120 |
+
return _common.as_file(_common.files(package) / normalize_path(resource))
|
shared/package-files/d1/d132f83197095d4a28f6a03bbaed2f2efede1eb5d17ab566c9f8bb3b5e3d213c/blob
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""CUDA Driver
|
| 2 |
+
|
| 3 |
+
- Driver API binding
|
| 4 |
+
- NVVM API binding
|
| 5 |
+
- Device array implementation
|
| 6 |
+
|
| 7 |
+
"""
|
| 8 |
+
from numba.core import config
|
| 9 |
+
assert not config.ENABLE_CUDASIM, 'Cannot use real driver API with simulator'
|
shared/package-files/d1/d136f12171747ea2f89913a16f452fafac4c411543f62b7c24523b3c41261c19/blob
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|
shared/package-files/d1/d13744c2cd7cd7bf54732637d88ce57fc6b8cd561beadeb62c4190df13ff3dd9/blob
ADDED
|
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
#include <atomic>
|
| 4 |
+
#include <memory>
|
| 5 |
+
|
| 6 |
+
#include <torch/csrc/jit/ir/ir.h>
|
| 7 |
+
#include <torch/csrc/jit/python/update_graph_executor_opt.h>
|
| 8 |
+
#include <torch/csrc/jit/runtime/argument_spec.h>
|
| 9 |
+
#include <torch/csrc/jit/runtime/interpreter.h>
|
| 10 |
+
#include <torch/csrc/jit/runtime/variable_tensor_list.h>
|
| 11 |
+
|
| 12 |
+
C10_DECLARE_bool(torch_jit_enable_new_executor);
|
| 13 |
+
|
| 14 |
+
C10_DECLARE_bool(torch_jit_execution_plan_reuse_code_graph);
|
| 15 |
+
|
| 16 |
+
namespace torch::jit {
|
| 17 |
+
struct GraphExecutorState;
|
| 18 |
+
struct Code;
|
| 19 |
+
|
| 20 |
+
enum ExecutorExecutionMode {
|
| 21 |
+
SIMPLE,
|
| 22 |
+
PROFILING,
|
| 23 |
+
};
|
| 24 |
+
|
| 25 |
+
struct ExecutionPlan {
|
| 26 |
+
ExecutionPlan() = default;
|
| 27 |
+
ExecutionPlan(std::shared_ptr<Graph> graph, std::string function_name)
|
| 28 |
+
: code(graph, std::move(function_name)),
|
| 29 |
+
graph(
|
| 30 |
+
FLAGS_torch_jit_execution_plan_reuse_code_graph
|
| 31 |
+
? code.graph()
|
| 32 |
+
: std::move(graph)) {}
|
| 33 |
+
|
| 34 |
+
operator bool() const {
|
| 35 |
+
return static_cast<bool>(graph);
|
| 36 |
+
}
|
| 37 |
+
|
| 38 |
+
Code code;
|
| 39 |
+
std::shared_ptr<Graph> graph;
|
| 40 |
+
};
|
| 41 |
+
|
| 42 |
+
// Notice that those structs don't manage lifetime of their members.
|
| 43 |
+
// They are only valid only right after you call getDebugState() and should
|
| 44 |
+
// never be used again once another GraphExecutor function is called.
|
| 45 |
+
|
| 46 |
+
// NOLINTNEXTLINE(cppcoreguidelines-pro-type-member-init)
|
| 47 |
+
struct GraphExecutorState {
|
| 48 |
+
const Graph* graph = nullptr;
|
| 49 |
+
ExecutionPlan fallback; // XXX: members of this field are optional
|
| 50 |
+
std::unordered_map<ArgumentSpec, ExecutionPlan> execution_plans;
|
| 51 |
+
};
|
| 52 |
+
|
| 53 |
+
struct TORCH_API EnableProfilingGuard {
|
| 54 |
+
EnableProfilingGuard();
|
| 55 |
+
~EnableProfilingGuard();
|
| 56 |
+
|
| 57 |
+
private:
|
| 58 |
+
bool old_executor_mode = false;
|
| 59 |
+
bool old_get_optimize = false;
|
| 60 |
+
};
|
| 61 |
+
|
| 62 |
+
struct GraphExecutorImplBase;
|
| 63 |
+
struct TORCH_API GraphExecutor {
|
| 64 |
+
GraphExecutor() = default;
|
| 65 |
+
GraphExecutor(const std::shared_ptr<Graph>& graph, std::string function_name);
|
| 66 |
+
|
| 67 |
+
GraphExecutor(
|
| 68 |
+
const std::shared_ptr<Graph>& graph,
|
| 69 |
+
std::string function_name,
|
| 70 |
+
ExecutorExecutionMode executor_mode);
|
| 71 |
+
|
| 72 |
+
void run(Stack& inputs);
|
| 73 |
+
c10::intrusive_ptr<Future> runAsync(
|
| 74 |
+
Stack& stack,
|
| 75 |
+
TaskLauncher taskLauncher = at::launch);
|
| 76 |
+
|
| 77 |
+
// `remaining_bailout_depth` stands for the maximum number of profiled and
|
| 78 |
+
// specialized recompilations allowed for the current `GraphExecutor`. if
|
| 79 |
+
// remaining_bailout_depth is equal to 0, `GraphExecutor` won't perform any
|
| 80 |
+
// profiling and specialization. This is also equivalent to the
|
| 81 |
+
// SIMPLE_EXECUTOR mode. if remaining_bailout_depth is greater than 0,
|
| 82 |
+
// `GraphExecutor` will profile and specialize its input graph based on the
|
| 83 |
+
// profiled information whenever a bailout check is failed/triggered, a new
|
| 84 |
+
// `GraphExecutor` will be created. This new `GraphExecutor`'s
|
| 85 |
+
// remaining_bailout_depth will be reduced by 1.
|
| 86 |
+
// If no bailout depth is passed, the depth will be initialized from the
|
| 87 |
+
// current global fusion strategy settings.
|
| 88 |
+
const ExecutionPlan& getPlanFor(
|
| 89 |
+
Stack& inputs,
|
| 90 |
+
c10::optional<size_t> remaining_bailout_depth = c10::nullopt);
|
| 91 |
+
GraphExecutorState getDebugState();
|
| 92 |
+
|
| 93 |
+
void debugFlushCompilationCache();
|
| 94 |
+
|
| 95 |
+
bool isOptimized() const;
|
| 96 |
+
|
| 97 |
+
private:
|
| 98 |
+
std::shared_ptr<GraphExecutorImplBase> pImpl;
|
| 99 |
+
};
|
| 100 |
+
|
| 101 |
+
TORCH_API Node* replaceBlockWithFallbackGraph(
|
| 102 |
+
Block* b,
|
| 103 |
+
ArrayRef<Value*> inputs);
|
| 104 |
+
|
| 105 |
+
// These passes need to run before it is valid to pass to the interpreter
|
| 106 |
+
// regardless of whether sizes have been specialized or not.
|
| 107 |
+
TORCH_API void runRequiredPasses(const std::shared_ptr<Graph>& g);
|
| 108 |
+
|
| 109 |
+
TORCH_API void debugSetFusionGroupInlining(bool state);
|
| 110 |
+
TORCH_API bool getFusionGroupInlining();
|
| 111 |
+
|
| 112 |
+
TORCH_API void debugSetAutodiffSubgraphInlining(bool state);
|
| 113 |
+
TORCH_API std::shared_ptr<Graph> lastExecutedOptimizedGraph();
|
| 114 |
+
|
| 115 |
+
TORCH_API std::atomic<bool>& getProfilingMode();
|
| 116 |
+
TORCH_API std::atomic<bool>& getExecutorMode();
|
| 117 |
+
TORCH_API std::atomic<size_t>& getNumProfiledRuns();
|
| 118 |
+
TORCH_API size_t getBailoutDepth();
|
| 119 |
+
TORCH_API bool IsNewExecutorEnabled();
|
| 120 |
+
|
| 121 |
+
struct TORCH_API GraphOptimizerEnabledGuard {
|
| 122 |
+
GraphOptimizerEnabledGuard(bool state)
|
| 123 |
+
: old_state_(getGraphExecutorOptimize()) {
|
| 124 |
+
setGraphExecutorOptimize(state);
|
| 125 |
+
}
|
| 126 |
+
|
| 127 |
+
~GraphOptimizerEnabledGuard() {
|
| 128 |
+
setGraphExecutorOptimize(old_state_);
|
| 129 |
+
}
|
| 130 |
+
|
| 131 |
+
bool old_state_;
|
| 132 |
+
};
|
| 133 |
+
|
| 134 |
+
namespace detail {
|
| 135 |
+
|
| 136 |
+
GraphExecutor* getGradExecutor(Operation& op);
|
| 137 |
+
|
| 138 |
+
GraphExecutor* getDifferentiableGraphOpExecutor(Operation& op);
|
| 139 |
+
|
| 140 |
+
// for debugging information we expose a way to get the last actually
|
| 141 |
+
// run graph. Previous approaches allowed querying the GraphExecutor
|
| 142 |
+
// for what graph it would run in certain circumstances (graphFor), but
|
| 143 |
+
// this is fragile because we sometimes change how these decisions are made.
|
| 144 |
+
// This interface still allows our tests to look at optimized graphs, but
|
| 145 |
+
// with less plumbing.
|
| 146 |
+
} // namespace detail
|
| 147 |
+
|
| 148 |
+
} // namespace torch::jit
|
shared/package-files/d1/d139a725e64239a4d69de79603ae839712a06946494df3f48ca80b018d638b28/blob
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import pytest
|
| 2 |
+
|
| 3 |
+
import pandas as pd
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
class TestResolution:
|
| 7 |
+
@pytest.mark.parametrize(
|
| 8 |
+
"freq,expected",
|
| 9 |
+
[
|
| 10 |
+
("Y", "year"),
|
| 11 |
+
("Q", "quarter"),
|
| 12 |
+
("M", "month"),
|
| 13 |
+
("D", "day"),
|
| 14 |
+
("h", "hour"),
|
| 15 |
+
("min", "minute"),
|
| 16 |
+
("s", "second"),
|
| 17 |
+
("ms", "millisecond"),
|
| 18 |
+
("us", "microsecond"),
|
| 19 |
+
],
|
| 20 |
+
)
|
| 21 |
+
def test_resolution(self, freq, expected):
|
| 22 |
+
idx = pd.period_range(start="2013-04-01", periods=30, freq=freq)
|
| 23 |
+
assert idx.resolution == expected
|
shared/package-files/d1/d139acf8eb2a687729587edad85e26a8aa8457e1b96ed8992ad7b77149c45903/blob
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""
|
| 2 |
+
Timeseries API
|
| 3 |
+
"""
|
| 4 |
+
|
| 5 |
+
from pandas._libs.tslibs.parsing import guess_datetime_format
|
| 6 |
+
|
| 7 |
+
from pandas.tseries import offsets
|
| 8 |
+
from pandas.tseries.frequencies import infer_freq
|
| 9 |
+
|
| 10 |
+
__all__ = ["infer_freq", "offsets", "guess_datetime_format"]
|
shared/package-files/d1/d13ad093943853e1af4974dee049a287a07624983658cbbfbb4a528fddb0a950/blob
ADDED
|
@@ -0,0 +1,174 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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ism"""
|
| 2 |
+
|
| 3 |
+
|
| 4 |
+
from .core import Registry
|
| 5 |
+
from .sympify import sympify
|
| 6 |
+
|
| 7 |
+
|
| 8 |
+
class SingletonRegistry(Registry):
|
| 9 |
+
"""
|
| 10 |
+
The registry for the singleton classes (accessible as ``S``).
|
| 11 |
+
|
| 12 |
+
Explanation
|
| 13 |
+
===========
|
| 14 |
+
|
| 15 |
+
This class serves as two separate things.
|
| 16 |
+
|
| 17 |
+
The first thing it is is the ``SingletonRegistry``. Several classes in
|
| 18 |
+
SymPy appear so often that they are singletonized, that is, using some
|
| 19 |
+
metaprogramming they are made so that they can only be instantiated once
|
| 20 |
+
(see the :class:`sympy.core.singleton.Singleton` class for details). For
|
| 21 |
+
instance, every time you create ``Integer(0)``, this will return the same
|
| 22 |
+
instance, :class:`sympy.core.numbers.Zero`. All singleton instances are
|
| 23 |
+
attributes of the ``S`` object, so ``Integer(0)`` can also be accessed as
|
| 24 |
+
``S.Zero``.
|
| 25 |
+
|
| 26 |
+
Singletonization offers two advantages: it saves memory, and it allows
|
| 27 |
+
fast comparison. It saves memory because no matter how many times the
|
| 28 |
+
singletonized objects appear in expressions in memory, they all point to
|
| 29 |
+
the same single instance in memory. The fast comparison comes from the
|
| 30 |
+
fact that you can use ``is`` to compare exact instances in Python
|
| 31 |
+
(usually, you need to use ``==`` to compare things). ``is`` compares
|
| 32 |
+
objects by memory address, and is very fast.
|
| 33 |
+
|
| 34 |
+
Examples
|
| 35 |
+
========
|
| 36 |
+
|
| 37 |
+
>>> from sympy import S, Integer
|
| 38 |
+
>>> a = Integer(0)
|
| 39 |
+
>>> a is S.Zero
|
| 40 |
+
True
|
| 41 |
+
|
| 42 |
+
For the most part, the fact that certain objects are singletonized is an
|
| 43 |
+
implementation detail that users should not need to worry about. In SymPy
|
| 44 |
+
library code, ``is`` comparison is often used for performance purposes
|
| 45 |
+
The primary advantage of ``S`` for end users is the convenient access to
|
| 46 |
+
certain instances that are otherwise difficult to type, like ``S.Half``
|
| 47 |
+
(instead of ``Rational(1, 2)``).
|
| 48 |
+
|
| 49 |
+
When using ``is`` comparison, make sure the argument is sympified. For
|
| 50 |
+
instance,
|
| 51 |
+
|
| 52 |
+
>>> x = 0
|
| 53 |
+
>>> x is S.Zero
|
| 54 |
+
False
|
| 55 |
+
|
| 56 |
+
This problem is not an issue when using ``==``, which is recommended for
|
| 57 |
+
most use-cases:
|
| 58 |
+
|
| 59 |
+
>>> 0 == S.Zero
|
| 60 |
+
True
|
| 61 |
+
|
| 62 |
+
The second thing ``S`` is is a shortcut for
|
| 63 |
+
:func:`sympy.core.sympify.sympify`. :func:`sympy.core.sympify.sympify` is
|
| 64 |
+
the function that converts Python objects such as ``int(1)`` into SymPy
|
| 65 |
+
objects such as ``Integer(1)``. It also converts the string form of an
|
| 66 |
+
expression into a SymPy expression, like ``sympify("x**2")`` ->
|
| 67 |
+
``Symbol("x")**2``. ``S(1)`` is the same thing as ``sympify(1)``
|
| 68 |
+
(basically, ``S.__call__`` has been defined to call ``sympify``).
|
| 69 |
+
|
| 70 |
+
This is for convenience, since ``S`` is a single letter. It's mostly
|
| 71 |
+
useful for defining rational numbers. Consider an expression like ``x +
|
| 72 |
+
1/2``. If you enter this directly in Python, it will evaluate the ``1/2``
|
| 73 |
+
and give ``0.5``, because both arguments are ints (see also
|
| 74 |
+
:ref:`tutorial-gotchas-final-notes`). However, in SymPy, you usually want
|
| 75 |
+
the quotient of two integers to give an exact rational number. The way
|
| 76 |
+
Python's evaluation works, at least one side of an operator needs to be a
|
| 77 |
+
SymPy object for the SymPy evaluation to take over. You could write this
|
| 78 |
+
as ``x + Rational(1, 2)``, but this is a lot more typing. A shorter
|
| 79 |
+
version is ``x + S(1)/2``. Since ``S(1)`` returns ``Integer(1)``, the
|
| 80 |
+
division will return a ``Rational`` type, since it will call
|
| 81 |
+
``Integer.__truediv__``, which knows how to return a ``Rational``.
|
| 82 |
+
|
| 83 |
+
"""
|
| 84 |
+
__slots__ = ()
|
| 85 |
+
|
| 86 |
+
# Also allow things like S(5)
|
| 87 |
+
__call__ = staticmethod(sympify)
|
| 88 |
+
|
| 89 |
+
def __init__(self):
|
| 90 |
+
self._classes_to_install = {}
|
| 91 |
+
# Dict of classes that have been registered, but that have not have been
|
| 92 |
+
# installed as an attribute of this SingletonRegistry.
|
| 93 |
+
# Installation automatically happens at the first attempt to access the
|
| 94 |
+
# attribute.
|
| 95 |
+
# The purpose of this is to allow registration during class
|
| 96 |
+
# initialization during import, but not trigger object creation until
|
| 97 |
+
# actual use (which should not happen until after all imports are
|
| 98 |
+
# finished).
|
| 99 |
+
|
| 100 |
+
def register(self, cls):
|
| 101 |
+
# Make sure a duplicate class overwrites the old one
|
| 102 |
+
if hasattr(self, cls.__name__):
|
| 103 |
+
delattr(self, cls.__name__)
|
| 104 |
+
self._classes_to_install[cls.__name__] = cls
|
| 105 |
+
|
| 106 |
+
def __getattr__(self, name):
|
| 107 |
+
"""Python calls __getattr__ if no attribute of that name was installed
|
| 108 |
+
yet.
|
| 109 |
+
|
| 110 |
+
Explanation
|
| 111 |
+
===========
|
| 112 |
+
|
| 113 |
+
This __getattr__ checks whether a class with the requested name was
|
| 114 |
+
already registered but not installed; if no, raises an AttributeError.
|
| 115 |
+
Otherwise, retrieves the class, calculates its singleton value, installs
|
| 116 |
+
it as an attribute of the given name, and unregisters the class."""
|
| 117 |
+
if name not in self._classes_to_install:
|
| 118 |
+
raise AttributeError(
|
| 119 |
+
"Attribute '%s' was not installed on SymPy registry %s" % (
|
| 120 |
+
name, self))
|
| 121 |
+
class_to_install = self._classes_to_install[name]
|
| 122 |
+
value_to_install = class_to_install()
|
| 123 |
+
self.__setattr__(name, value_to_install)
|
| 124 |
+
del self._classes_to_install[name]
|
| 125 |
+
return value_to_install
|
| 126 |
+
|
| 127 |
+
def __repr__(self):
|
| 128 |
+
return "S"
|
| 129 |
+
|
| 130 |
+
S = SingletonRegistry()
|
| 131 |
+
|
| 132 |
+
|
| 133 |
+
class Singleton(type):
|
| 134 |
+
"""
|
| 135 |
+
Metaclass for singleton classes.
|
| 136 |
+
|
| 137 |
+
Explanation
|
| 138 |
+
===========
|
| 139 |
+
|
| 140 |
+
A singleton class has only one instance which is returned every time the
|
| 141 |
+
class is instantiated. Additionally, this instance can be accessed through
|
| 142 |
+
the global registry object ``S`` as ``S.<class_name>``.
|
| 143 |
+
|
| 144 |
+
Examples
|
| 145 |
+
========
|
| 146 |
+
|
| 147 |
+
>>> from sympy import S, Basic
|
| 148 |
+
>>> from sympy.core.singleton import Singleton
|
| 149 |
+
>>> class MySingleton(Basic, metaclass=Singleton):
|
| 150 |
+
... pass
|
| 151 |
+
>>> Basic() is Basic()
|
| 152 |
+
False
|
| 153 |
+
>>> MySingleton() is MySingleton()
|
| 154 |
+
True
|
| 155 |
+
>>> S.MySingleton is MySingleton()
|
| 156 |
+
True
|
| 157 |
+
|
| 158 |
+
Notes
|
| 159 |
+
=====
|
| 160 |
+
|
| 161 |
+
Instance creation is delayed until the first time the value is accessed.
|
| 162 |
+
(SymPy versions before 1.0 would create the instance during class
|
| 163 |
+
creation time, which would be prone to import cycles.)
|
| 164 |
+
"""
|
| 165 |
+
def __init__(cls, *args, **kwargs):
|
| 166 |
+
cls._instance = obj = Basic.__new__(cls)
|
| 167 |
+
cls.__new__ = lambda cls: obj
|
| 168 |
+
cls.__getnewargs__ = lambda obj: ()
|
| 169 |
+
cls.__getstate__ = lambda obj: None
|
| 170 |
+
S.register(cls)
|
| 171 |
+
|
| 172 |
+
|
| 173 |
+
# Delayed to avoid cyclic import
|
| 174 |
+
from .basic import Basic
|
shared/package-files/d1/d13da4530fb2a70d9d66ee96508e6aa0de35f1c0e60a32e52b71b847cec9d292/blob
ADDED
|
@@ -0,0 +1,250 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import torch
|
| 2 |
+
from torch.fx import GraphModule
|
| 3 |
+
from torch.fx import Node
|
| 4 |
+
|
| 5 |
+
from .pt2e.prepare import prepare
|
| 6 |
+
from .pt2e.qat_utils import (
|
| 7 |
+
_fuse_conv_bn_qat,
|
| 8 |
+
_fold_conv_bn_qat,
|
| 9 |
+
)
|
| 10 |
+
from .pt2e.utils import (
|
| 11 |
+
_get_node_name_to_scope,
|
| 12 |
+
_fuse_conv_bn_,
|
| 13 |
+
_disallow_eval_train,
|
| 14 |
+
)
|
| 15 |
+
from .pt2e.representation import reference_representation_rewrite
|
| 16 |
+
from .quantize_fx import _convert_to_reference_decomposed_fx
|
| 17 |
+
from torch.ao.quantization.quantizer import ( # noqa: F401
|
| 18 |
+
Quantizer,
|
| 19 |
+
QuantizationSpecBase,
|
| 20 |
+
QuantizationSpec,
|
| 21 |
+
FixedQParamsQuantizationSpec,
|
| 22 |
+
SharedQuantizationSpec,
|
| 23 |
+
DerivedQuantizationSpec,
|
| 24 |
+
QuantizationAnnotation,
|
| 25 |
+
)
|
| 26 |
+
from torch.fx.passes.infra.pass_manager import PassManager
|
| 27 |
+
from torch.ao.quantization.pt2e.duplicate_dq_pass import DuplicateDQPass
|
| 28 |
+
from torch.ao.quantization.pt2e.port_metadata_pass import PortNodeMetaForQDQ
|
| 29 |
+
from torch._inductor.constant_folding import constant_fold
|
| 30 |
+
|
| 31 |
+
__all__ = [
|
| 32 |
+
"prepare_pt2e",
|
| 33 |
+
"prepare_qat_pt2e",
|
| 34 |
+
"convert_pt2e",
|
| 35 |
+
]
|
| 36 |
+
|
| 37 |
+
|
| 38 |
+
def prepare_pt2e(
|
| 39 |
+
model: GraphModule,
|
| 40 |
+
quantizer: Quantizer,
|
| 41 |
+
) -> GraphModule:
|
| 42 |
+
"""Prepare a model for post training quantization
|
| 43 |
+
|
| 44 |
+
Args:
|
| 45 |
+
* `model` (torch.fx.GraphModule): a model captured by `torch.export` API
|
| 46 |
+
in the short term we are using `torch._export.capture_pre_autograd_graph`,
|
| 47 |
+
in the long term we'll migrate to some `torch.export` API
|
| 48 |
+
* `quantizer`: A backend specific quantizer that conveys how user want the
|
| 49 |
+
model to be quantized. Tutorial for how to write a quantizer can be found here:
|
| 50 |
+
https://pytorch.org/tutorials/prototype/pt2e_quantizer.html
|
| 51 |
+
|
| 52 |
+
Return:
|
| 53 |
+
A GraphModule with observer (based on quantizer annotation), ready for calibration
|
| 54 |
+
|
| 55 |
+
Example::
|
| 56 |
+
|
| 57 |
+
import torch
|
| 58 |
+
from torch.ao.quantization.quantize_pt2e import prepare_pt2e
|
| 59 |
+
from torch._export import capture_pre_autograd_graph
|
| 60 |
+
from torch.ao.quantization.quantizer import (
|
| 61 |
+
XNNPACKQuantizer,
|
| 62 |
+
get_symmetric_quantization_config,
|
| 63 |
+
)
|
| 64 |
+
|
| 65 |
+
class M(torch.nn.Module):
|
| 66 |
+
def __init__(self):
|
| 67 |
+
super().__init__()
|
| 68 |
+
self.linear = torch.nn.Linear(5, 10)
|
| 69 |
+
|
| 70 |
+
def forward(self, x):
|
| 71 |
+
return self.linear(x)
|
| 72 |
+
|
| 73 |
+
# initialize a floating point model
|
| 74 |
+
float_model = M().eval()
|
| 75 |
+
|
| 76 |
+
# define calibration function
|
| 77 |
+
def calibrate(model, data_loader):
|
| 78 |
+
model.eval()
|
| 79 |
+
with torch.no_grad():
|
| 80 |
+
for image, target in data_loader:
|
| 81 |
+
model(image)
|
| 82 |
+
|
| 83 |
+
# Step 1. program capture
|
| 84 |
+
# NOTE: this API will be updated to torch.export API in the future, but the captured
|
| 85 |
+
# result shoud mostly stay the same
|
| 86 |
+
m = capture_pre_autograd_graph(m, *example_inputs)
|
| 87 |
+
# we get a model with aten ops
|
| 88 |
+
|
| 89 |
+
# Step 2. quantization
|
| 90 |
+
# backend developer will write their own Quantizer and expose methods to allow
|
| 91 |
+
# users to express how they
|
| 92 |
+
# want the model to be quantized
|
| 93 |
+
quantizer = XNNPACKQuantizer().set_global(get_symmetric_quantization_config())
|
| 94 |
+
m = prepare_pt2e(m, quantizer)
|
| 95 |
+
|
| 96 |
+
# run calibration
|
| 97 |
+
# calibrate(m, sample_inference_data)
|
| 98 |
+
"""
|
| 99 |
+
torch._C._log_api_usage_once("quantization_api.quantize_pt2e.prepare_pt2e")
|
| 100 |
+
original_graph_meta = model.meta
|
| 101 |
+
node_name_to_scope = _get_node_name_to_scope(model)
|
| 102 |
+
# TODO: check qconfig_mapping to make sure conv and bn are both configured
|
| 103 |
+
# to be quantized before fusion
|
| 104 |
+
# TODO: (maybe) rewrite this with subgraph_rewriter
|
| 105 |
+
_fuse_conv_bn_(model)
|
| 106 |
+
quantizer.transform_for_annotation(model)
|
| 107 |
+
quantizer.annotate(model)
|
| 108 |
+
quantizer.validate(model)
|
| 109 |
+
model = prepare(model, node_name_to_scope, is_qat=False)
|
| 110 |
+
model.meta.update(original_graph_meta)
|
| 111 |
+
model = _disallow_eval_train(model)
|
| 112 |
+
return model
|
| 113 |
+
|
| 114 |
+
def prepare_qat_pt2e(
|
| 115 |
+
model: GraphModule,
|
| 116 |
+
quantizer: Quantizer,
|
| 117 |
+
) -> GraphModule:
|
| 118 |
+
"""Prepare a model for quantization aware training
|
| 119 |
+
|
| 120 |
+
Args:
|
| 121 |
+
* `model` (torch.fx.GraphModule): see :func:`~torch.ao.quantization.quantize_pt2e.prepare_pt2e`
|
| 122 |
+
* `quantizer`: see :func:`~torch.ao.quantization.quantize_pt2e.prepare_pt2e`
|
| 123 |
+
|
| 124 |
+
Return:
|
| 125 |
+
A GraphModule with fake quant modules (based on quantizer annotation), ready for
|
| 126 |
+
quantization aware training
|
| 127 |
+
|
| 128 |
+
Example::
|
| 129 |
+
import torch
|
| 130 |
+
from torch.ao.quantization.quantize_pt2e import prepare_qat_pt2e
|
| 131 |
+
from torch._export import capture_pre_autograd_graph
|
| 132 |
+
from torch.ao.quantization.quantizer import (
|
| 133 |
+
XNNPACKQuantizer,
|
| 134 |
+
get_symmetric_quantization_config,
|
| 135 |
+
)
|
| 136 |
+
|
| 137 |
+
class M(torch.nn.Module):
|
| 138 |
+
def __init__(self):
|
| 139 |
+
super().__init__()
|
| 140 |
+
self.linear = torch.nn.Linear(5, 10)
|
| 141 |
+
|
| 142 |
+
def forward(self, x):
|
| 143 |
+
return self.linear(x)
|
| 144 |
+
|
| 145 |
+
# initialize a floating point model
|
| 146 |
+
float_model = M().eval()
|
| 147 |
+
|
| 148 |
+
# define the training loop for quantization aware training
|
| 149 |
+
def train_loop(model, train_data):
|
| 150 |
+
model.train()
|
| 151 |
+
for image, target in data_loader:
|
| 152 |
+
...
|
| 153 |
+
|
| 154 |
+
# Step 1. program capture
|
| 155 |
+
# NOTE: this API will be updated to torch.export API in the future, but the captured
|
| 156 |
+
# result shoud mostly stay the same
|
| 157 |
+
m = capture_pre_autograd_graph(m, *example_inputs)
|
| 158 |
+
# we get a model with aten ops
|
| 159 |
+
|
| 160 |
+
# Step 2. quantization
|
| 161 |
+
# backend developer will write their own Quantizer and expose methods to allow
|
| 162 |
+
# users to express how they
|
| 163 |
+
# want the model to be quantized
|
| 164 |
+
quantizer = XNNPACKQuantizer().set_global(get_symmetric_quantization_config())
|
| 165 |
+
m = prepare_qat_pt2e(m, quantizer)
|
| 166 |
+
|
| 167 |
+
# run quantization aware training
|
| 168 |
+
train_loop(prepared_model, train_loop)
|
| 169 |
+
|
| 170 |
+
"""
|
| 171 |
+
torch._C._log_api_usage_once("quantization_api.quantize_pt2e.prepare_qat_pt2e")
|
| 172 |
+
original_graph_meta = model.meta
|
| 173 |
+
node_name_to_scope = _get_node_name_to_scope(model)
|
| 174 |
+
quantizer.transform_for_annotation(model)
|
| 175 |
+
quantizer.annotate(model)
|
| 176 |
+
quantizer.validate(model)
|
| 177 |
+
# Perform fusion after annotate to avoid quantizing ops in the new
|
| 178 |
+
# subgraph that don't need to be quantized
|
| 179 |
+
# TODO: only fuse if conv and bn are both configured to be quantized
|
| 180 |
+
_fuse_conv_bn_qat(model)
|
| 181 |
+
model = prepare(model, node_name_to_scope, is_qat=True)
|
| 182 |
+
model.meta.update(original_graph_meta)
|
| 183 |
+
model = _disallow_eval_train(model)
|
| 184 |
+
return model
|
| 185 |
+
|
| 186 |
+
_QUANT_OPS = [
|
| 187 |
+
torch.ops.quantized_decomposed.quantize_per_tensor.default,
|
| 188 |
+
torch.ops.quantized_decomposed.quantize_per_tensor.tensor,
|
| 189 |
+
torch.ops.quantized_decomposed.quantize_per_channel.default,
|
| 190 |
+
]
|
| 191 |
+
def _quant_node_constraint(n: Node) -> bool:
|
| 192 |
+
"""If there is any pure ops between get_attr and quantize op they will be const propagated
|
| 193 |
+
e.g. get_attr(weight) -> transpose -> quantize -> dequantize*
|
| 194 |
+
(Note: dequantize op is not going to be constant propagated)
|
| 195 |
+
|
| 196 |
+
This filter is added because we don't want to constant fold the things that are not
|
| 197 |
+
related to quantization
|
| 198 |
+
"""
|
| 199 |
+
return n.op == "call_function" and n.target in _QUANT_OPS
|
| 200 |
+
|
| 201 |
+
def convert_pt2e(
|
| 202 |
+
model: GraphModule,
|
| 203 |
+
use_reference_representation: bool = False,
|
| 204 |
+
fold_quantize: bool = True,
|
| 205 |
+
) -> GraphModule:
|
| 206 |
+
"""Convert a calibrated/trained model to a quantized model
|
| 207 |
+
|
| 208 |
+
Args:
|
| 209 |
+
* `model` (torch.fx.GraphModule): calibrated/trained model
|
| 210 |
+
* `use_reference_representation` (bool): boolean flag to indicate whether to produce referece representation or not
|
| 211 |
+
* `fold_quantize` (bool): boolean flag for whether fold the quantize op or not
|
| 212 |
+
|
| 213 |
+
Returns:
|
| 214 |
+
quantized model, either in q/dq representation or reference representation
|
| 215 |
+
|
| 216 |
+
Example::
|
| 217 |
+
|
| 218 |
+
# prepared_model: the model produced by `prepare_pt2e`/`prepare_qat_pt2e` and calibration/training
|
| 219 |
+
# `convert_pt2e` produces a quantized model that represents quantized computation with
|
| 220 |
+
# quantize dequantize ops and fp32 ops by default.
|
| 221 |
+
# Please refer to
|
| 222 |
+
# https://pytorch.org/tutorials/prototype/pt2e_quant_ptq_static.html#convert-the-calibrated-model-to-a-quantized-model
|
| 223 |
+
# for detailed explanation of output quantized model
|
| 224 |
+
quantized_model = convert_pt2e(prepared_model)
|
| 225 |
+
|
| 226 |
+
""" # flake8: noqa
|
| 227 |
+
torch._C._log_api_usage_once("quantization_api.quantize_pt2e.convert_pt2e")
|
| 228 |
+
if not isinstance(use_reference_representation, bool):
|
| 229 |
+
raise ValueError(
|
| 230 |
+
"Unexpected argument type for `use_reference_representation`, "
|
| 231 |
+
f"please make sure you intend to pass argument {use_reference_representation} to convert_pt2e")
|
| 232 |
+
original_graph_meta = model.meta
|
| 233 |
+
model = _convert_to_reference_decomposed_fx(model)
|
| 234 |
+
model = _fold_conv_bn_qat(model)
|
| 235 |
+
|
| 236 |
+
pm = PassManager([DuplicateDQPass()])
|
| 237 |
+
model = pm(model).graph_module
|
| 238 |
+
|
| 239 |
+
pm = PassManager([PortNodeMetaForQDQ()])
|
| 240 |
+
model = pm(model).graph_module
|
| 241 |
+
|
| 242 |
+
if fold_quantize:
|
| 243 |
+
constant_fold(model, _quant_node_constraint)
|
| 244 |
+
|
| 245 |
+
if use_reference_representation:
|
| 246 |
+
model = reference_representation_rewrite(model)
|
| 247 |
+
|
| 248 |
+
model.meta.update(original_graph_meta)
|
| 249 |
+
model = _disallow_eval_train(model)
|
| 250 |
+
return model
|
shared/package-files/d1/d13edbbfb3adb0315c81e9effc52e599d49aa0b6313a5fd622696997da7c56cc/blob
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
#pragma once
|
| 2 |
+
|
| 3 |
+
// @generated by torchgen/gen.py from Function.h
|
| 4 |
+
|
| 5 |
+
#include <ATen/Context.h>
|
| 6 |
+
#include <ATen/DeviceGuard.h>
|
| 7 |
+
#include <ATen/TensorUtils.h>
|
| 8 |
+
#include <ATen/TracerMode.h>
|
| 9 |
+
#include <ATen/core/Generator.h>
|
| 10 |
+
#include <ATen/core/Reduction.h>
|
| 11 |
+
#include <ATen/core/Tensor.h>
|
| 12 |
+
#include <c10/core/Scalar.h>
|
| 13 |
+
#include <c10/core/Storage.h>
|
| 14 |
+
#include <c10/core/TensorOptions.h>
|
| 15 |
+
#include <c10/util/Deprecated.h>
|
| 16 |
+
#include <c10/util/Optional.h>
|
| 17 |
+
|
| 18 |
+
|
| 19 |
+
|
| 20 |
+
#include <ATen/ops/as_strided_scatter_ops.h>
|
| 21 |
+
|
| 22 |
+
namespace at {
|
| 23 |
+
|
| 24 |
+
|
| 25 |
+
// aten::as_strided_scatter(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None) -> Tensor
|
| 26 |
+
inline at::Tensor as_strided_scatter(const at::Tensor & self, const at::Tensor & src, at::IntArrayRef size, at::IntArrayRef stride, c10::optional<int64_t> storage_offset=c10::nullopt) {
|
| 27 |
+
return at::_ops::as_strided_scatter::call(self, src, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt);
|
| 28 |
+
}
|
| 29 |
+
namespace symint {
|
| 30 |
+
template <typename T, typename = std::enable_if_t<std::is_same<T, int64_t>::value>>
|
| 31 |
+
at::Tensor as_strided_scatter(const at::Tensor & self, const at::Tensor & src, at::IntArrayRef size, at::IntArrayRef stride, c10::optional<int64_t> storage_offset=c10::nullopt) {
|
| 32 |
+
return at::_ops::as_strided_scatter::call(self, src, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt);
|
| 33 |
+
}
|
| 34 |
+
}
|
| 35 |
+
|
| 36 |
+
// aten::as_strided_scatter(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None) -> Tensor
|
| 37 |
+
inline at::Tensor as_strided_scatter_symint(const at::Tensor & self, const at::Tensor & src, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional<c10::SymInt> storage_offset=c10::nullopt) {
|
| 38 |
+
return at::_ops::as_strided_scatter::call(self, src, size, stride, storage_offset);
|
| 39 |
+
}
|
| 40 |
+
namespace symint {
|
| 41 |
+
template <typename T, typename = std::enable_if_t<std::is_same<T, c10::SymInt>::value>>
|
| 42 |
+
at::Tensor as_strided_scatter(const at::Tensor & self, const at::Tensor & src, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional<c10::SymInt> storage_offset=c10::nullopt) {
|
| 43 |
+
return at::_ops::as_strided_scatter::call(self, src, size, stride, storage_offset);
|
| 44 |
+
}
|
| 45 |
+
}
|
| 46 |
+
|
| 47 |
+
// aten::as_strided_scatter.out(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!)
|
| 48 |
+
inline at::Tensor & as_strided_scatter_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & src, at::IntArrayRef size, at::IntArrayRef stride, c10::optional<int64_t> storage_offset=c10::nullopt) {
|
| 49 |
+
return at::_ops::as_strided_scatter_out::call(self, src, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt, out);
|
| 50 |
+
}
|
| 51 |
+
namespace symint {
|
| 52 |
+
template <typename T, typename = std::enable_if_t<std::is_same<T, int64_t>::value>>
|
| 53 |
+
at::Tensor & as_strided_scatter_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & src, at::IntArrayRef size, at::IntArrayRef stride, c10::optional<int64_t> storage_offset=c10::nullopt) {
|
| 54 |
+
return at::_ops::as_strided_scatter_out::call(self, src, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt, out);
|
| 55 |
+
}
|
| 56 |
+
}
|
| 57 |
+
|
| 58 |
+
// aten::as_strided_scatter.out(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!)
|
| 59 |
+
inline at::Tensor & as_strided_scatter_outf(const at::Tensor & self, const at::Tensor & src, at::IntArrayRef size, at::IntArrayRef stride, c10::optional<int64_t> storage_offset, at::Tensor & out) {
|
| 60 |
+
return at::_ops::as_strided_scatter_out::call(self, src, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt, out);
|
| 61 |
+
}
|
| 62 |
+
namespace symint {
|
| 63 |
+
template <typename T, typename = std::enable_if_t<std::is_same<T, int64_t>::value>>
|
| 64 |
+
at::Tensor & as_strided_scatter_outf(const at::Tensor & self, const at::Tensor & src, at::IntArrayRef size, at::IntArrayRef stride, c10::optional<int64_t> storage_offset, at::Tensor & out) {
|
| 65 |
+
return at::_ops::as_strided_scatter_out::call(self, src, c10::fromIntArrayRefSlow(size), c10::fromIntArrayRefSlow(stride), storage_offset.has_value() ? c10::make_optional(c10::SymInt(*storage_offset)) : c10::nullopt, out);
|
| 66 |
+
}
|
| 67 |
+
}
|
| 68 |
+
|
| 69 |
+
// aten::as_strided_scatter.out(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!)
|
| 70 |
+
inline at::Tensor & as_strided_scatter_symint_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & src, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional<c10::SymInt> storage_offset=c10::nullopt) {
|
| 71 |
+
return at::_ops::as_strided_scatter_out::call(self, src, size, stride, storage_offset, out);
|
| 72 |
+
}
|
| 73 |
+
namespace symint {
|
| 74 |
+
template <typename T, typename = std::enable_if_t<std::is_same<T, c10::SymInt>::value>>
|
| 75 |
+
at::Tensor & as_strided_scatter_out(at::Tensor & out, const at::Tensor & self, const at::Tensor & src, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional<c10::SymInt> storage_offset=c10::nullopt) {
|
| 76 |
+
return at::_ops::as_strided_scatter_out::call(self, src, size, stride, storage_offset, out);
|
| 77 |
+
}
|
| 78 |
+
}
|
| 79 |
+
|
| 80 |
+
// aten::as_strided_scatter.out(Tensor self, Tensor src, SymInt[] size, SymInt[] stride, SymInt? storage_offset=None, *, Tensor(a!) out) -> Tensor(a!)
|
| 81 |
+
inline at::Tensor & as_strided_scatter_symint_outf(const at::Tensor & self, const at::Tensor & src, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional<c10::SymInt> storage_offset, at::Tensor & out) {
|
| 82 |
+
return at::_ops::as_strided_scatter_out::call(self, src, size, stride, storage_offset, out);
|
| 83 |
+
}
|
| 84 |
+
namespace symint {
|
| 85 |
+
template <typename T, typename = std::enable_if_t<std::is_same<T, c10::SymInt>::value>>
|
| 86 |
+
at::Tensor & as_strided_scatter_outf(const at::Tensor & self, const at::Tensor & src, c10::SymIntArrayRef size, c10::SymIntArrayRef stride, c10::optional<c10::SymInt> storage_offset, at::Tensor & out) {
|
| 87 |
+
return at::_ops::as_strided_scatter_out::call(self, src, size, stride, storage_offset, out);
|
| 88 |
+
}
|
| 89 |
+
}
|
| 90 |
+
|
| 91 |
+
}
|
shared/package-files/d1/d13f49c7092a5e91accc67dcaecb71272459ced57d551b05a957068437049a13/blob
ADDED
|
@@ -0,0 +1,72 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// Licensed to the Apache Software Foundation (ASF) under one
|
| 2 |
+
// or more contributor license agreements. See the NOTICE file
|
| 3 |
+
// distributed with this work for additional information
|
| 4 |
+
// regarding copyright ownership. The ASF licenses this file
|
| 5 |
+
// to you under the Apache License, Version 2.0 (the
|
| 6 |
+
// "License"); you may not use this file except in compliance
|
| 7 |
+
// with the License. You may obtain a copy of the License at
|
| 8 |
+
//
|
| 9 |
+
// http://www.apache.org/licenses/LICENSE-2.0
|
| 10 |
+
//
|
| 11 |
+
// Unless required by applicable law or agreed to in writing,
|
| 12 |
+
// software distributed under the License is distributed on an
|
| 13 |
+
// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
| 14 |
+
// KIND, either express or implied. See the License for the
|
| 15 |
+
// specific language governing permissions and limitations
|
| 16 |
+
// under the License.
|
| 17 |
+
|
| 18 |
+
#pragma once
|
| 19 |
+
|
| 20 |
+
#include <cstdint>
|
| 21 |
+
#include <string>
|
| 22 |
+
|
| 23 |
+
#include "arrow/util/span.h"
|
| 24 |
+
#include "arrow/util/visibility.h"
|
| 25 |
+
|
| 26 |
+
namespace arrow::util {
|
| 27 |
+
/**
|
| 28 |
+
* A secure string that ensures the wrapped string is cleared from memory on
|
| 29 |
+
* deconstruction. This class can only be created from std::string that are securely
|
| 30 |
+
* erased after creation.
|
| 31 |
+
*
|
| 32 |
+
* Note: This class does not provide a constructor / assignment operator that copies a
|
| 33 |
+
* std::string because that would allow code to create a SecureString while accidentally
|
| 34 |
+
* not noticing the need to securely erasing the argument after invoking the constructor /
|
| 35 |
+
* calling the assignment operator.
|
| 36 |
+
*/
|
| 37 |
+
class ARROW_EXPORT SecureString {
|
| 38 |
+
public:
|
| 39 |
+
SecureString() = default;
|
| 40 |
+
SecureString(SecureString&&) noexcept;
|
| 41 |
+
SecureString(const SecureString&) = default;
|
| 42 |
+
explicit SecureString(std::string&&) noexcept;
|
| 43 |
+
explicit SecureString(size_t, char) noexcept;
|
| 44 |
+
|
| 45 |
+
SecureString& operator=(SecureString&&) noexcept;
|
| 46 |
+
SecureString& operator=(const SecureString&);
|
| 47 |
+
SecureString& operator=(std::string&&) noexcept;
|
| 48 |
+
|
| 49 |
+
bool operator==(const SecureString&) const;
|
| 50 |
+
bool operator!=(const SecureString&) const;
|
| 51 |
+
|
| 52 |
+
~SecureString() { Dispose(); }
|
| 53 |
+
|
| 54 |
+
[[nodiscard]] bool empty() const;
|
| 55 |
+
[[nodiscard]] std::size_t size() const;
|
| 56 |
+
[[nodiscard]] std::size_t length() const;
|
| 57 |
+
[[nodiscard]] std::size_t capacity() const;
|
| 58 |
+
|
| 59 |
+
[[nodiscard]] span<uint8_t> as_span();
|
| 60 |
+
[[nodiscard]] span<const uint8_t> as_span() const;
|
| 61 |
+
[[nodiscard]] std::string_view as_view() const;
|
| 62 |
+
|
| 63 |
+
void Dispose();
|
| 64 |
+
|
| 65 |
+
static void SecureClear(std::string*);
|
| 66 |
+
static void SecureClear(uint8_t* data, size_t size);
|
| 67 |
+
|
| 68 |
+
private:
|
| 69 |
+
std::string secret_;
|
| 70 |
+
};
|
| 71 |
+
|
| 72 |
+
} // namespace arrow::util
|
shared/package-files/d1/d142631e75bfb34a0aa462cc782a34f69e2448e464706638ef25a42ba230f317/blob
ADDED
|
Binary file (8.73 kB). View file
|
|
|
shared/package-files/d1/d143659ddde1ce57f6734122c0b24586d4f256ecb2932c02d13aa206ba4d9501/blob
ADDED
|
Binary file (1.52 kB). View file
|
|
|
shared/package-files/d1/d146208ff5159c304faa373716ee1096567fca252e416929c84c25fb34dd096f/blob
ADDED
|
The diff for this file is too large to render.
See raw diff
|
|
|