[PyTorch] Remove unused function in import (#65865)

Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/65865

`operator_str` is not used in `import.cpp` and it is also defined in `parse_operators.cpp` so removing it from `import.cpp`.

Test Plan: CI passing

Reviewed By: iseeyuan

Differential Revision: D31293008

fbshipit-source-id: 1c857cbd63c57b8f79c1a068789fc8605605b642
This commit is contained in:
Mengwei Liu
2021-10-06 06:33:39 -07:00
committed by Facebook GitHub Bot
parent a5895f85be
commit ab25516054

View File

@ -88,16 +88,6 @@ using caffe2::serialize::ReadAdapterInterface;
OpCode parseOpCode(const char* str);
std::string operator_str(
const std::string& name,
const std::string& overloadname) {
std::string result = name;
if (!overloadname.empty()) {
result += "." + overloadname;
}
return result;
}
TypePtr resolveTypeNameMobile(
const c10::QualifiedName& qn,
std::shared_ptr<CompilationUnit> compilation_unit) {