remove interned_string.h dep (#19061)
authorLu Fang <lufang@fb.com>
Tue, 9 Apr 2019 16:56:34 +0000 (09:56 -0700)
committerFacebook Github Bot <facebook-github-bot@users.noreply.github.com>
Tue, 9 Apr 2019 16:59:15 +0000 (09:59 -0700)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/19061

remove the deps on interned_string.h

Reviewed By: BIT-silence

Differential Revision: D14850078

fbshipit-source-id: 07e6ad72a7de369049ea56f32b72276fb4c59b32

caffe2/core/c10_operator.h

index 86d8911..240a16b 100644 (file)
@@ -1,7 +1,6 @@
 #pragma once
 
 #include <ATen/core/function_schema.h>
-#include <ATen/core/interned_strings.h>
 #include <ATen/core/op_registration/op_registration.h>
 #include <vector>
 
@@ -98,7 +97,7 @@ inline c10::FunctionSchema make_function_schema_for_c10(const char* OperatorName
       IValue());
 
   return c10::FunctionSchema(
-      Symbol::caffe2(OperatorName).toQualString(),
+      std::string("_caffe2::") + OperatorName,
       "",
       std::move(actual_inputs),
       std::move(outputs));