Skip to content

Conversation

@anderspapitto
Copy link
Contributor

This was accidentally lost while addressing review comments on
#4695

pack_padded_sequence may be called either with a list or with a
Variable. If called with a list we convert to Variable internally.

I added to test_nn to test the new codepath. The bug was also caught
by the onnx-fb-universe tests (which rely on passing in Variable).

@ezyang
Copy link
Contributor

ezyang commented Feb 7, 2018

👍

@ezyang
Copy link
Contributor

ezyang commented Feb 7, 2018

(but you need to fix lint)

This was accidentally lost while addressing review comments on
pytorch#4695

pack_padded_sequence may be called either with a list or with a
Variable. If called with a list we convert to Variable internally.

I added to test_nn to test the new codepath. The bug was also caught
by the onnx-fb-universe tests (which rely on passing in Variable).
@anderspapitto
Copy link
Contributor Author

fixed lint

@ezyang ezyang merged commit ef14590 into pytorch:master Feb 7, 2018
@anderspapitto anderspapitto deleted the bugfix branch February 7, 2018 22:14
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.

2 participants