Skip to content
Merged
Prev Previous commit
Next Next commit
1 more bad rebase fix
  • Loading branch information
electriclilies committed Aug 24, 2021
commit 76257bbdd24ea8a9032e27afad85c774386285ce
8 changes: 0 additions & 8 deletions src/runtime/object.cc
Original file line number Diff line number Diff line change
Expand Up @@ -262,11 +262,3 @@ int TVMObjectTypeKey2Index(const char* type_key, unsigned* out_tindex) {
out_tindex[0] = tvm::runtime::ObjectInternal::ObjectTypeKey2Index(type_key);
API_END();
}

int TVMObjectTypeIndex2Key(unsigned tindex, char** out_type_key) {
API_BEGIN();
auto key = tvm::runtime::Object::TypeIndex2Key(tindex);
*out_type_key = static_cast<char*>(malloc(key.size() + 1));
strncpy(*out_type_key, key.c_str(), key.size());
API_END();
}