diff --git a/include/tvm/ir/expr.h b/include/tvm/ir/expr.h index efde52385177e..6c81f06561d27 100644 --- a/include/tvm/ir/expr.h +++ b/include/tvm/ir/expr.h @@ -866,28 +866,6 @@ struct PackedFuncValueConverter { } }; -/* \brief Backwards compatibility wrapper for IntImm arguments - * - * In previous versions of TVM, IntImm was the default FFI type for - * integer arguments, instead of runtime::Int. For backwards - * compatibility where the callee has been updated to expected a - * runtime::Int, the caller has not been updated to provide a - * runtime::Int (e.g. relay script parsing), and the auto-unboxing of - * runtime::Int does not apply (e.g. making an `Array`), - * allow the IntImm to be generated. - */ -template <> -struct PackedFuncValueConverter { - template - static runtime::Int From(const PODSubclass& val) { - if (val.template IsObjectRef()) { - return runtime::Int(val.template AsObjectRef()->value); - } else { - return val.template AsObjectRef(); - } - } -}; - } // namespace runtime } // namespace tvm