You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@tvm.apache.org by GitBox <gi...@apache.org> on 2021/07/20 06:45:25 UTC

[GitHub] [tvm] sunjiweiswift commented on a change in pull request #8497: [Runtime] add set_output_zero_copy

sunjiweiswift commented on a change in pull request #8497:
URL: https://github.com/apache/tvm/pull/8497#discussion_r672849571



##########
File path: src/runtime/graph_executor/graph_executor.cc
##########
@@ -463,6 +515,15 @@ PackedFunc GraphExecutor::GetFunction(const std::string& name,
         this->SetInputZeroCopy(args[0], args[1]);
       }
     });
+  } else if (name == "set_output_zero_copy") {
+    return PackedFunc([sptr_to_self, this](TVMArgs args, TVMRetValue* rv) {
+      if (String::CanConvertFrom(args[0])) {
+        int in_idx = this->GetOutputIndex(args[0].operator String());
+        if (in_idx >= 0) this->SetOutputZeroCopy(in_idx, args[1]);

Review comment:
       ?What does dido mean




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@tvm.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org