This repository was archived by the owner on Nov 17, 2023. It is now read-only.
[Large Tensor] Fixed col2im op#17622
Merged
Merged
Conversation
Contributor
Author
|
@mxnet-label-bot add [pr-awaiting-review] |
Contributor
|
@connorgoggins Could you add a test to our nightly if it is not already there? Thanks! |
ChaiBapchya
approved these changes
Feb 19, 2020
Contributor
ChaiBapchya
left a comment
There was a problem hiding this comment.
LGTM but do add the test to tests/nightly/test_large_array.py
63d0937 to
d24f284
Compare
d24f284 to
d7c99b6
Compare
anirudh2290
pushed a commit
to anirudh2290/mxnet
that referenced
this pull request
May 29, 2020
* Changed dtype for index_im * Added nightly test for col2im
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
The col2im op was previously breaking on large tensor (dimension >= 2^32) data. With the following input:
the following error was thrown:
To root cause this issue, I ran the previous command in a Python script with GDB, and found that the underlying problem was in the dtype of the image index variable (
index_im) within the col2im op's kernel inim2col.h. This image index variable used theintdtype when it should have been usingindex_tto properly handle long int indices. I switched this variable toindex_tin the kernel and, after rebuilding, the previous input command displayed the correct output:Note: I also confirmed that, with my revisions, the op works with a large tensor (>= 2^32) output size, as the following command passes without errors.
Checklist
Essentials
Please feel free to remove inapplicable items for your PR.
Changes
Comments
Tested on r5dn.24xl-ubuntu 16.04 and p2.16xl-ubuntu 16.04 with
Results
The key difference between CPU and GPU tests was the instance type (r5dn.24xl for CPU, p2.16xl for GPU). All relevant build flags remain the same, and both were tested using CPU context.
Single operator test - col2im op (GPU)
Single operator test - col2im op (CPU)
Full OpPerf test (GPU)
Full OpPerf test (CPU)
@apeforest @access2rohit