[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-30 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r623740685 ## File path: include/tvm/tir/builtin.h ## @@ -343,6 +343,16 @@ TVM_DLL const Op& tvm_stack_make_array(); */ TVM_DLL const Op& tvm_call_packed(); +/*! +

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-27 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r621447913 ## File path: include/tvm/tir/builtin.h ## @@ -343,6 +343,16 @@ TVM_DLL const Op& tvm_stack_make_array(); */ TVM_DLL const Op& tvm_call_packed(); +/*! +

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-27 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r621226575 ## File path: src/target/source/codegen_source_base.h ## @@ -155,7 +156,8 @@ runtime::Module CSourceModuleCreate(const String& code, const String& fmt, */

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-26 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r620586188 ## File path: python/tvm/relay/build_module.py ## @@ -213,7 +218,7 @@ def _build_module_no_factory(mod, target=None, target_host=None, params=None, mo

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-26 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r620584765 ## File path: src/target/source/source_module.cc ## @@ -191,17 +192,36 @@ class CSourceCrtMetadataModuleNode : public runtime::ModuleNode { << "}

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-26 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r620580137 ## File path: src/target/source/codegen_source_base.h ## @@ -155,7 +156,8 @@ runtime::Module CSourceModuleCreate(const String& code, const String& fmt, */

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-26 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r620355300 ## File path: src/runtime/crt/memory/stack_allocator.c ## @@ -16,17 +16,22 @@ * specific language governing permissions and limitations * under the Licen

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-23 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r619541593 ## File path: src/runtime/crt/memory/stack_allocator.c ## @@ -16,17 +16,22 @@ * specific language governing permissions and limitations * under the Licen

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-23 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r619396142 ## File path: include/tvm/runtime/crt/stack_allocator.h ## @@ -0,0 +1,58 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more co

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-23 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r619379316 ## File path: src/runtime/crt/memory/stack_allocator.c ## @@ -16,17 +16,22 @@ * specific language governing permissions and limitations * under the Licen

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-22 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r618573550 ## File path: src/runtime/crt/memory/stack_allocator.c ## @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more con

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-21 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r617752937 ## File path: src/relay/backend/build_module.cc ## @@ -473,23 +517,25 @@ class RelayBuildModule : public runtime::ModuleNode { // Relay IRModule -> IR

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-21 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r617747883 ## File path: src/relay/backend/build_module.cc ## @@ -473,23 +517,25 @@ class RelayBuildModule : public runtime::ModuleNode { // Relay IRModule -> IR

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-19 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r615928298 ## File path: src/target/source/codegen_c_host.cc ## @@ -324,15 +343,20 @@ inline void CodeGenCHost::PrintTernaryCondExpr(const T* op, const char* compare,

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-16 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r615043798 ## File path: tests/python/relay/test_backend_graph_executor.py ## @@ -133,7 +133,7 @@ def test_plan_memory(): storage_ids = set() device_types = s

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-16 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r615043120 ## File path: src/target/source/codegen_c_host.cc ## @@ -211,21 +214,34 @@ void CodeGenCHost::PrintGetFuncFromBackend(const std::string& func_name, this-

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-16 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r615041000 ## File path: src/target/source/codegen_c_host.cc ## @@ -324,15 +343,20 @@ inline void CodeGenCHost::PrintTernaryCondExpr(const T* op, const char* compare,

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-16 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r615040646 ## File path: src/runtime/crt/memory/stack_allocator.c ## @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more con

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-16 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r615040232 ## File path: src/runtime/crt/memory/stack_allocator.c ## @@ -0,0 +1,48 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more con

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-16 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r615040089 ## File path: python/tvm/micro/model_library_format.py ## @@ -126,20 +125,25 @@ def export_model_library_format(mod: graph_executor_factory.GraphExecutorFac

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-16 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r615005314 ## File path: src/target/source/codegen_c_host.cc ## @@ -40,13 +40,16 @@ namespace codegen { CodeGenCHost::CodeGenCHost() { module_name_ = GetUniqueName(

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-16 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r614875602 ## File path: src/target/source/codegen_c_host.cc ## @@ -40,13 +40,16 @@ namespace codegen { CodeGenCHost::CodeGenCHost() { module_name_ = GetUniqueName(

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-16 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r614807239 ## File path: src/target/source/codegen_c_host.cc ## @@ -40,13 +40,16 @@ namespace codegen { CodeGenCHost::CodeGenCHost() { module_name_ = GetUniqueName(

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-16 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r614807239 ## File path: src/target/source/codegen_c_host.cc ## @@ -40,13 +40,16 @@ namespace codegen { CodeGenCHost::CodeGenCHost() { module_name_ = GetUniqueName(

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-16 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r614807239 ## File path: src/target/source/codegen_c_host.cc ## @@ -40,13 +40,16 @@ namespace codegen { CodeGenCHost::CodeGenCHost() { module_name_ = GetUniqueName(

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-13 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r612602136 ## File path: src/target/source/codegen_c_host.cc ## @@ -40,13 +40,16 @@ namespace codegen { CodeGenCHost::CodeGenCHost() { module_name_ = GetUniqueName(

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-12 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r611868584 ## File path: src/target/source/codegen_c_host.cc ## @@ -40,13 +40,16 @@ namespace codegen { CodeGenCHost::CodeGenCHost() { module_name_ = GetUniqueName(

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-12 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r611852863 ## File path: include/tvm/runtime/crt/stack_memory.h ## @@ -0,0 +1,55 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contr

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-12 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r611842671 ## File path: src/runtime/crt/common/aot_backend_api.c ## @@ -0,0 +1,59 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more con

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-12 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r611808333 ## File path: include/tvm/runtime/crt/aot_executor.h ## @@ -68,6 +67,9 @@ extern "C" { typedef struct { } tvm_context_t; +typedef int32_t(tvm_function_t)

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-12 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r611683529 ## File path: src/relay/backend/aot_codegen.cc ## @@ -0,0 +1,675 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributo

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-12 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r611646784 ## File path: src/relay/backend/aot_codegen.cc ## @@ -0,0 +1,675 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributo

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-09 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r610716277 ## File path: include/tvm/runtime/module.h ## @@ -230,6 +230,8 @@ constexpr const char* tvm_module_main = "__tvm_main__"; constexpr const char* tvm_param_pr

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-09 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r610707236 ## File path: include/tvm/runtime/crt/aot/tvm_executor.h ## @@ -0,0 +1,97 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more c

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-09 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r610705074 ## File path: include/tvm/runtime/crt/aot/tvm_executor.h ## @@ -0,0 +1,97 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more c

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-09 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r610703811 ## File path: include/tvm/runtime/crt/aot/tvm_backend.h ## @@ -0,0 +1,104 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more c

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608201217 ## File path: include/tvm/runtime/crt/aot/tvm_backend.h ## @@ -0,0 +1,104 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more c

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608200210 ## File path: src/target/source/source_module.cc ## @@ -191,17 +192,35 @@ class CSourceCrtMetadataModuleNode : public runtime::ModuleNode { << "}

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608194704 ## File path: src/target/source/codegen_c_host.cc ## @@ -211,21 +219,34 @@ void CodeGenCHost::PrintGetFuncFromBackend(const std::string& func_name, this-

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608193957 ## File path: src/runtime/crt/aot/tvm_executor.c ## @@ -0,0 +1,91 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contribut

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608186592 ## File path: src/relay/backend/aot_codegen.cc ## @@ -0,0 +1,675 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributo

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608185624 ## File path: src/relay/backend/aot_codegen.cc ## @@ -0,0 +1,675 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributo

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608182858 ## File path: src/relay/backend/aot_codegen.cc ## @@ -0,0 +1,675 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributo

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608181342 ## File path: src/relay/backend/aot_codegen.cc ## @@ -0,0 +1,675 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one + * or more contributo

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608176669 ## File path: python/tvm/relay/backend/graph_executor_factory.py ## @@ -41,17 +41,18 @@ class GraphExecutorFactoryModule: The parameters of module

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608175049 ## File path: python/tvm/micro/model_library_format.py ## @@ -156,10 +170,11 @@ def export_model_library_format(mod: graph_executor_factory.GraphExecutorFac

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608168664 ## File path: python/tvm/micro/model_library_format.py ## @@ -86,10 +86,13 @@ def _build_memory_map(graph_json): list : A list with one entry p

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608168664 ## File path: python/tvm/micro/model_library_format.py ## @@ -86,10 +86,13 @@ def _build_memory_map(graph_json): list : A list with one entry p

[GitHub] [tvm] giuseros commented on a change in pull request #7785: [AOT] Introducing AOT in TVM

2021-04-06 Thread GitBox
giuseros commented on a change in pull request #7785: URL: https://github.com/apache/tvm/pull/7785#discussion_r608125123 ## File path: include/tvm/runtime/module.h ## @@ -230,6 +230,8 @@ constexpr const char* tvm_module_main = "__tvm_main__"; constexpr const char* tvm_param_pr