Add new LengthsSplit operator (#10291)#10974
Closed
Oscarlight wants to merge 1 commit intopytorch:masterfrom
Closed
Add new LengthsSplit operator (#10291)#10974Oscarlight wants to merge 1 commit intopytorch:masterfrom
Oscarlight wants to merge 1 commit intopytorch:masterfrom
Conversation
Author
|
@pytorchbot retest this please |
1 similar comment
Author
|
@pytorchbot retest this please |
868dbdb to
7b90861
Compare
7b90861 to
1f434be
Compare
1f434be to
352a55d
Compare
352a55d to
45378aa
Compare
Author
|
@pytorchbot retest this please |
3 similar comments
Author
|
@pytorchbot retest this please |
Author
|
@pytorchbot retest this please |
Author
|
@pytorchbot retest this please |
Author
|
Hi, @bddppq, a lot of runs are keep failing. Could you help to take a look? Thanks so much! |
Author
|
@pytorchbot retest this please |
45378aa to
277401a
Compare
Author
|
@pytorchbot retest this please |
3 similar comments
Author
|
@pytorchbot retest this please |
Author
|
@pytorchbot retest this please |
Author
|
@pytorchbot retest this please |
Author
|
@pytorchbot retest |
Author
|
@pytorchbot retest this please |
Author
|
@pytorchbot retest this please |
Author
|
@pytorchbot retest this please |
1 similar comment
Author
|
@pytorchbot retest this please |
Author
|
@pytorchbot retest this please |
Summary: Pull Request resolved: pytorch#10974 Pull Request resolved: pytorch#10291 This new operator will do the following: Given a LENGTHS vector and n_splits, output a "split" LENGTHS vector where: 1. Each length in input vector is split into n_splits values (thus output vector should have LENGTHS.size(0) * n_splits elements) 2. The new lengths in output should be evenly split, and if the length is not divisible by n_splits, then order new values in descending order. (e.g. n_splits = 3, length = 5 -> 2 2 1) 3. If n_splits > some element in the array, its split elements will contain 0s. (e.g. n_splits = 3, length = 2 - > 1 1 0) Reviewed By: bddppq, chocjy Differential Revision: D9013119 fbshipit-source-id: ad773dcaae813c253068a7cf7e774020627f0b13
277401a to
adaae56
Compare
Author
|
@pytorchbot retest this please |
PenghuiCheng
pushed a commit
to PenghuiCheng/pytorch
that referenced
this pull request
Sep 11, 2018
Summary: Pull Request resolved: pytorch#10974 Pull Request resolved: pytorch#10291 This new operator will do the following: Given a LENGTHS vector and n_splits, output a "split" LENGTHS vector where: 1. Each length in input vector is split into n_splits values (thus output vector should have LENGTHS.size(0) * n_splits elements) 2. The new lengths in output should be evenly split, and if the length is not divisible by n_splits, then order new values in descending order. (e.g. n_splits = 3, length = 5 -> 2 2 1) 3. If n_splits > some element in the array, its split elements will contain 0s. (e.g. n_splits = 3, length = 2 - > 1 1 0) Reviewed By: bddppq, chocjy Differential Revision: D9013119 fbshipit-source-id: 82bf3371ec08c41fc3379177f0007afc142e0d84
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary:
Pull Request resolved: #10291
This new operator will do the following:
Given a LENGTHS vector and n_splits, output a "split" LENGTHS vector where:
Differential Revision: D9013119