This is an automated email from the ASF dual-hosted git repository.

tkonolige pushed a commit to branch tkonolige/relax_pad_etc_new
in repository https://gitbox.apache.org/repos/asf/tvm.git

commit b1c5c6a66253540237a56766f932d7ad328b9b30
Author: Tristan Konolige <[email protected]>
AuthorDate: Wed May 17 20:11:11 2023 +0000

    save metadata to file
---
 src/relax/backend/vm/vm_shape_lower.cc | 2 +-
 src/script/printer/utils.h             | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/relax/backend/vm/vm_shape_lower.cc 
b/src/relax/backend/vm/vm_shape_lower.cc
index f4b272979b..5b314117b3 100644
--- a/src/relax/backend/vm/vm_shape_lower.cc
+++ b/src/relax/backend/vm/vm_shape_lower.cc
@@ -370,7 +370,7 @@ class VMShapeLowerMutator
   }
 
   void VisitBinding_(const MatchCastNode* binding) final {
-    Expr value = ExprMutator::VisitExpr(binding->value);
+  Expr value = ExprMutator::VisitExpr(binding->value);
     std::vector<MatchShapeTodoItem> match_todos;
     std::ostringstream err_ctx;
     err_ctx << "ErrorContext(match_cast, struct_info=" << binding->struct_info 
<< ") ";
diff --git a/src/script/printer/utils.h b/src/script/printer/utils.h
index 2a2f469082..906c139d25 100644
--- a/src/script/printer/utils.h
+++ b/src/script/printer/utils.h
@@ -80,6 +80,7 @@ inline std::string Docsify(const ObjectRef& obj, const 
IRDocsifier& d, const Fra
   std::ostringstream os;
   if (!d->metadata.empty()) {
     if (d->cfg->show_meta) {
+      // std::ofstream("metadata.json") << SaveJSON(Map<String, 
ObjectRef>(d->metadata.begin(), d->metadata.end()));
       os << "metadata = tvm.ir.load_json(\""
          << support::StrEscape(
                 SaveJSON(Map<String, ObjectRef>(d->metadata.begin(), 
d->metadata.end())))

Reply via email to