junrushao1994 commented on a change in pull request #10578:
URL: https://github.com/apache/tvm/pull/10578#discussion_r826483744



##########
File path: src/relay/backend/te_compiler_cache.cc
##########
@@ -754,6 +754,24 @@ CachedFunc ShapeFuncFor(const Function& prim_func, const 
Target& target,
   return MakeShapeFunc().Create(prim_func, target, renamer);
 }
 
+std::pair<Array<te::Tensor>, std::string> LowerTECompute(const Function& 
source_func, Target target,
+                                                         bool return_inputs) {
+  LowerToTECompute lower_te_compute(target);
+  auto outputs = lower_te_compute.Lower(source_func, [&](std::string name) { 
return name; });

Review comment:
       nit: just nitpick again :-)
   
   ```suggestion
     Array<te::Tensor> outputs = lower_te_compute.Lower(source_func, 
[&](std::string name) { return name; });
   ```




-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to