Allow ReadyQueue to handle empty tasks (#15791)
authoralbanD <alban@robots.ox.ac.uk>
Wed, 9 Jan 2019 03:57:16 +0000 (19:57 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Wed, 9 Jan 2019 04:06:04 +0000 (20:06 -0800)
commit828cb18fa35c7c132ab920de1c0dc6d859f152d6
tree6364a545849bbf28f1543496448a97cf32997669
parent8a07cbe5e1c2c7b56e9b46ebed0d192dc9551612
Allow ReadyQueue to handle empty tasks (#15791)

Summary:
Allow the comparison function used in ReadyQueue to handle the empty FunctionTasks created by the reentrant autograd.
Fix #11732
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15791

Differential Revision: D13598006

Pulled By: soumith

fbshipit-source-id: 0bfdf28a735fbfe44f0fdbaf8b74a6198e6a1984
test/test_autograd.py
torch/csrc/autograd/engine.cpp