Remove dead code in module.cpp (#19022)
authorDavid Riazati <davidriazati@fb.com>
Mon, 8 Apr 2019 20:01:09 +0000 (13:01 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Mon, 8 Apr 2019 20:04:04 +0000 (13:04 -0700)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19022
ghimport-source-id: cdf694c1b426eb9f82d4c148c9f2c2cfc180cedd

Reviewed By: eellison

Differential Revision: D14833409

Pulled By: driazati

fbshipit-source-id: 8914c7227add7f3e07f56b21a513ba7727fb6800

torch/csrc/jit/script/module.cpp

index 5958d82..33cb951 100644 (file)
@@ -55,8 +55,6 @@ Value* try_emit_call_to(
           << " attempting to call a method with parameters/attributes"
              " from a raw graph. File a bug report";
     }
-    // TODO: preserve the type information so we don't have to infer it here
-    auto type = incompleteInferTypeFrom(member.value());
     matched_schema->inputs.push_back(
         caller->get_or_add_attribute(member));
   }