eq_fixes (#15475)
authorsurgan12 <jandialsurgan@gmail.com>
Fri, 21 Dec 2018 19:32:02 +0000 (11:32 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Fri, 21 Dec 2018 19:43:06 +0000 (11:43 -0800)
Summary:
fixes #15464 .
cc : ezyang
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15475

Differential Revision: D13537812

Pulled By: ezyang

fbshipit-source-id: 127adf612ac8b3d3a64baa3d12a53daba7d3e4b8

aten/src/ATen/native/LegacyDefinitions.cpp

index 087d7d8..eb6a254 100644 (file)
@@ -111,7 +111,7 @@ Tensor & eq_(Tensor& self, Scalar other) {
 }
 
 Tensor & eq_(Tensor& self, const Tensor & other) {
-  return at::legacy::th::_th_ge_(self, other);
+  return at::legacy::th::_th_eq_(self, other);
 }
 
 Tensor & ne_(Tensor& self, Scalar other) {