Allow list and tuples to be passed as output_size to max_unpool1d (#16489)
authorvishwakftw <cs15btech11043@iith.ac.in>
Wed, 30 Jan 2019 18:44:59 +0000 (10:44 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 30 Jan 2019 19:00:34 +0000 (11:00 -0800)
commit34b43baeec3f5d2c0e45ecbdf866f121b6829d15
tree724e5d6475c3dc5626ebc4fa425c3e9ccd2f88fe
parentb1b00f329efb6fa023b8e2d561d03ff5d312063c
Allow list and tuples to be passed as output_size to max_unpool1d (#16489)

Summary:
Changelog:
- Modify concantenation of [1] to a tuple by using cases for list and non-list types.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/16489

Differential Revision: D13875838

Pulled By: soumith

fbshipit-source-id: fade65cc47385986b773b9bde9b4601ab93fe1cf
test/test_nn.py
torch/nn/functional.py