-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Improve Windows Compatibility(for 0.2.0) #2402
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
torch/lib/TH/THGeneral.c
Outdated
|
|
||
| TH_API THDescBuff _THSizeDesc(const long *size, const long ndim) { | ||
| const int L = TH_DESC_BUFF_LEN; | ||
| TH_API THDescBuff _THSizeDesc(const uint8_t *size, const uint8_t ndim) { |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| int i = 0, _mask=0; | ||
| int64_t K = THLongTensor_nElement(J); | ||
| int64_t output_nelem = THLongTensor_nElement(self); | ||
| int64_t i = 0, _mask=0; |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| _q = THTensor_fastGet1d(q, rand_ind); | ||
|
|
||
| _mask = THRandom_bernoulli(_generator, _q); | ||
| _mask = (int) THRandom_bernoulli(_generator, _q); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
| #elif defined(USE_MSC_ATOMICS) | ||
| assert(sizeof(int) == sizeof(long)); | ||
| return _InterlockedExchangeAdd((long*)a, value); | ||
| //assert(sizeof(int32_t) == sizeof(long)); |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
Thanks a lot for the PR! I had a quick look at the Also, Travis is failing with a weird error message just before trying to checkout the branch: |
|
@fmassa The error is caused by that i changed that file from a symlink to the real copy of the file. Since it can be done through git config, i'll change it back. |
|
Ok, now I got it. |
|
@fmassa Symlinks don't work on Windows on default. I'll change it back later. |
|
I don't know if anything has been announced about this, but I think v.0.2.0 should only have bug fixes, not new feature; this is a new feature. |
| # ifdef _WIN32 | ||
| # define PyInt_FromLong PyLong_FromLongLong | ||
| # else | ||
| # define PyInt_FromLong PyLong_FromLong |
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
This comment was marked as off-topic.
This comment was marked as off-topic.
Sorry, something went wrong.
|
@gchanan should he then target merging into master, and not v0.2.0? |
…7f62f5 (pytorch#29363) Summary: Pull Request resolved: pytorch#29363 Previous import was 2891e1459745933f4bba9a8cb3371cf3c9eb1d16 Included changes: - **[fea8568c](onnx/onnx@fea8568c)**: minor changes to NonZero and Slice (pytorch#2429) <Ashwini Khade> - **[79bd5042](onnx/onnx@79bd5042)**: fix test bugs for resize op version 11 (pytorch#2425) <Ashwini Khade> - **[3ea3b0e0](onnx/onnx@3ea3b0e0)**: Add shape existence check in GatherElements shape inference logic (pytorch#2402) <Hariharan Seshadri> - **[192ad8c8](onnx/onnx@192ad8c8)**: add invite for next workshop (pytorch#2407) <Prasanth Pulavarthi> - **[eea60812](onnx/onnx@eea60812)**: Fix missing comma in exception message. Causes invalid message depending on what's in memory prior to the constant char string. (pytorch#2403) <Scott McKay> - **[dd082c99](onnx/onnx@dd082c99)**: Add section headers for easier linking (pytorch#2400) <Prasanth Pulavarthi> - **[ca1d5b7e](onnx/onnx@ca1d5b7e)**: Add type check for node inputs (pytorch#2367) <RandySheriffH> - **[e5600091](onnx/onnx@e5600091)**: Update doc loop op (pytorch#2337) <G. Ramalingam> Test Plan: ci Reviewed By: hl475 Differential Revision: D18365923 fbshipit-source-id: 29aedd36020db633a946a97bf7d22d9f27f82f09
…7f62f5 (#29363) Summary: Pull Request resolved: #29363 Previous import was 2891e1459745933f4bba9a8cb3371cf3c9eb1d16 Included changes: - **[fea8568c](onnx/onnx@fea8568c)**: minor changes to NonZero and Slice (#2429) <Ashwini Khade> - **[79bd5042](onnx/onnx@79bd5042)**: fix test bugs for resize op version 11 (#2425) <Ashwini Khade> - **[3ea3b0e0](onnx/onnx@3ea3b0e0)**: Add shape existence check in GatherElements shape inference logic (#2402) <Hariharan Seshadri> - **[192ad8c8](onnx/onnx@192ad8c8)**: add invite for next workshop (#2407) <Prasanth Pulavarthi> - **[eea60812](onnx/onnx@eea60812)**: Fix missing comma in exception message. Causes invalid message depending on what's in memory prior to the constant char string. (#2403) <Scott McKay> - **[dd082c99](onnx/onnx@dd082c99)**: Add section headers for easier linking (#2400) <Prasanth Pulavarthi> - **[ca1d5b7e](onnx/onnx@ca1d5b7e)**: Add type check for node inputs (#2367) <RandySheriffH> - **[e5600091](onnx/onnx@e5600091)**: Update doc loop op (#2337) <G. Ramalingam> Test Plan: ci Reviewed By: hl475 Differential Revision: D18365923 fbshipit-source-id: 8ac138e3ff9d4fbc5fdf85d06785190334c346a1
…torch#2402) Signed-off-by: Jagadish Krishnamoorthy <[email protected]>
The code changes that helps build on Windows.