Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Better bounds checks in ctcloss#16269

Closed
ashermancinelli wants to merge 31 commits into
pytorch:masterfrom
ashermancinelli:maxcheck
Closed

Better bounds checks in ctcloss#16269
ashermancinelli wants to merge 31 commits into
pytorch:masterfrom
ashermancinelli:maxcheck

Conversation

@ashermancinelli
Copy link
Copy Markdown
Contributor

@ashermancinelli ashermancinelli commented Jan 23, 2019

Adds better bounds checks for target lengths in CTC loss, checks for integral types for target and prediction lengths, and adds tests for each, according to #15946

@ashermancinelli ashermancinelli changed the title Maxcheck Better bounds checks in ctcloss Jan 24, 2019
@ashermancinelli
Copy link
Copy Markdown
Contributor Author

cc @t-vi

Copy link
Copy Markdown
Collaborator

@t-vi t-vi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for sending this!
The code changes themselves look good to me, I think it would be good to add a few more tests.

Comment thread aten/src/ATen/native/LossCTC.cpp Outdated
Comment thread aten/src/ATen/native/LossCTC.cpp Outdated
Comment thread test/test_nn.py Outdated
Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

@ezyang
Copy link
Copy Markdown
Contributor

ezyang commented Jan 29, 2019

Tests are failing now

Comment thread test/test_nn.py Outdated
@ashermancinelli
Copy link
Copy Markdown
Contributor Author

ashermancinelli commented Jan 29, 2019

I dont know why TestSparseNormalize.test_sparse_normalize is the only test that failed... Merging with upstream to see if that fixes it

@t-vi
Copy link
Copy Markdown
Collaborator

t-vi commented Jan 29, 2019

I wouldn't worry too much about the failure for 31fdb04 - the rocm CI builds seem to be more prone to un-related build errors (and unlike the circle ci, I'm not sure they automatically retry).

@ashermancinelli
Copy link
Copy Markdown
Contributor Author

seems like failure on the circle ci binary_linux_manywheel_2.7mu_cpu_test instance is another false negative

@t-vi
Copy link
Copy Markdown
Collaborator

t-vi commented Jan 30, 2019

So now it all seems good for me, the build failure is indeed unrelated. Thanks @ashermancinelli !

@ashermancinelli
Copy link
Copy Markdown
Contributor Author

@t-vi Yep! Let me know if there's anything else I need to do to get it merged.

Copy link
Copy Markdown
Contributor

@facebook-github-bot facebook-github-bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ezyang is landing this pull request. If you are a Facebook employee, you can view this diff on Phabricator.

zdevito pushed a commit to zdevito/ATen that referenced this pull request Feb 1, 2019
Summary:
Adds better bounds checks for target lengths in CTC loss, checks for integral types for target and prediction lengths, and adds tests for each, according to #15946
Pull Request resolved: pytorch/pytorch#16269

Differential Revision: D13847567

Pulled By: ezyang

fbshipit-source-id: 5d7a975565e02baf78fe388813a1d1ef56dfb212
laurentdupin pushed a commit to laurentdupin/pytorch that referenced this pull request Apr 24, 2026
Summary:
Adds better bounds checks for target lengths in CTC loss, checks for integral types for target and prediction lengths, and adds tests for each, according to pytorch#15946
Pull Request resolved: pytorch#16269

Differential Revision: D13847567

Pulled By: ezyang

fbshipit-source-id: 5d7a975565e02baf78fe388813a1d1ef56dfb212
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants