Disable randn_like fusion in the JIT (#14752)
authorAdam Paszke <adam.paszke@gmail.com>
Tue, 4 Dec 2018 16:53:38 +0000 (08:53 -0800)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 4 Dec 2018 16:55:47 +0000 (08:55 -0800)
Summary:
Fixes #14674. We won't have time for a proper fix before the release, so at least disable fusion of nodes that trigger incorrect behavior.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/14752

Differential Revision: D13320407

Pulled By: zou3519

fbshipit-source-id: 2400f7c2cd332b957c248e755fdb0dadee68da5d

torch/csrc/jit/passes/graph_fuser.cpp

index 4a6e0d2..85717a5 100644 (file)
@@ -59,7 +59,9 @@ bool isSimpleMap(Node *node) {
     "aten::neg(Tensor self) -> Tensor",
     "aten::pow(Tensor self, Tensor exponent) -> Tensor",
     "aten::pow(Tensor self, Scalar exponent) -> Tensor",
-    "aten::rand_like(Tensor self) -> Tensor",
+    // See https://github.com/pytorch/pytorch/issues/14674 and make sure you
+    // won't make the same mistake before you reenable this.
+    //"aten::rand_like(Tensor self) -> Tensor",
     "aten::reciprocal(Tensor self) -> Tensor",
     "aten::relu(Tensor self) -> Tensor",
     "aten::remainder(Tensor self, Tensor other) -> Tensor",