improve deep equality check in alias annotation test (#15031)
authorMichael Suo <suo@fb.com>
Tue, 11 Dec 2018 19:44:27 +0000 (11:44 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 11 Dec 2018 20:14:00 +0000 (12:14 -0800)
commitd825b390614b8f6e281506fee891b87aba233cc4
treea9e1c72d1993c9c2c4ef0b69457a95c37d8b9b05
parent02d149b767e3f5f64a42d7305a8882d0b40fd5ea
improve deep equality check in alias annotation test (#15031)

Summary:
Previously we were returning true if either IValue wasn't a tensor, which…is bad
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15031

Differential Revision: D13409759

Pulled By: suo

fbshipit-source-id: f8bdcd05d334c1276ce46f55812065d358c1ff5d
aten/src/ATen/core/ivalue.cpp
aten/src/ATen/core/ivalue.h
torch/csrc/jit/passes/utils/check_alias_annotation.cpp