fix infinite loop when get_max_threads is nonzero but num_threads is 1
authorBrennan Vincent <btv@fb.com>
Wed, 12 Dec 2018 17:58:54 +0000 (09:58 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 12 Dec 2018 18:04:18 +0000 (10:04 -0800)
commit9d2955c39c1266e5071119b52d28c458393228a6
tree589fda41f98d1ce0544f2a9e42bcac0641c657ee
parent68ad9ae5bebd9efab127fa99e2bafd6852bbd8ed
fix infinite loop when get_max_threads is nonzero but num_threads is 1

Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/15114

Differential Revision: D13431891

Pulled By: umanwizard

fbshipit-source-id: f968b8e50cf776c346d4a28d72b12e7856c95839
aten/src/ATen/native/TensorIteratorReduce.cpp