diff --git a/python/tvm/relax/testing/ast_printer.py b/python/tvm/relax/testing/ast_printer.py index ca50d39f7bd5..dd17b2060b17 100644 --- a/python/tvm/relax/testing/ast_printer.py +++ b/python/tvm/relax/testing/ast_printer.py @@ -260,7 +260,6 @@ def visit_type_(self, type_node: relax.Type) -> str: "FuncType", arg_types=self.build_list(map(self.visit_type_, type_node.arg_types)), ret_type=self.visit_type_(type_node.ret_type), - # TODO: skipping type params and type constraints ) raise ValueError(f"Invalid Relax Type {type_node} ({type(type_node)})") diff --git a/src/relax/op/tensor/index.cc b/src/relax/op/tensor/index.cc index b346b6681b03..a5b6225ec416 100644 --- a/src/relax/op/tensor/index.cc +++ b/src/relax/op/tensor/index.cc @@ -84,8 +84,7 @@ StructInfo InferStructInfoTake(const Call& call, const BlockBuilder& ctx) { }(); if (indices_sinfo->IsUnknownDtype()) { - // TODO(tvm-team): Do we have an equivalent of `ctx->ReportFatal` for warning? - LOG(WARNING) << "Data type of indice has not been specified. Assume it has an integer type."; + LOG(WARNING) << "Data type of indices has not been specified. Assume it has an integer type."; } else if (!(indices_sinfo->dtype.is_int() || indices_sinfo->dtype.is_uint())) { ctx->ReportFatal(Diagnostic::Error(call) << "Take op requires the input indices to have integer dtype. However, the " diff --git a/src/relax/op/tensor/manipulate.cc b/src/relax/op/tensor/manipulate.cc index afb749a29747..d4bbbd208ba7 100644 --- a/src/relax/op/tensor/manipulate.cc +++ b/src/relax/op/tensor/manipulate.cc @@ -2617,7 +2617,7 @@ StructInfo InferStructInfoScatterElements(const Call& call, const BlockBuilder& } if (indices_sinfo->IsUnknownDtype()) { - LOG(WARNING) << "Data type of indice has not been specified. Assume it has an integer type."; + LOG(WARNING) << "Data type of indices has not been specified. Assume it has an integer type."; } else if (!(indices_sinfo->dtype.is_int() || indices_sinfo->dtype.is_uint())) { ctx->ReportFatal( Diagnostic::Error(call)