forked from microsoft/onnxruntime
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[TVM EP] support of TVM Virtual Machine (microsoft#10341)
* add executor option (vm or graph) and support virtual machine methods * nullptr check for compile and run methods (see also PR#10211 from microsoft:onnxruntime) * get output shapes for VM * remove run_with_benchmark. remove run methods from python api, get it from native side * get outputs method for VM was implemented * support multiple input for VM * update python logging and exception * small fix * update tvm with patch for VM API * update nhwc transformations for TVM EP * add data alignment check and support set_input_zero_copy for GE in TVM EP * fix logger name * return back to apache/tvm with VM fixes instead of local dev branch * hide customized tvm logger while issue is not resolved. fix tvm warning related to target_host * flake8 fix Co-authored-by: Valery Chernov <valery.chernov@deelvin.com> (cherry picked from commit 62cc981)
- Loading branch information
Showing
12 changed files
with
250 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
// Copyright (c) Microsoft Corporation. All rights reserved. | ||
// Licensed under the MIT License. | ||
|
||
#ifndef TVM_DEFAULTS_H | ||
#define TVM_DEFAULTS_H | ||
|
||
namespace onnxruntime { | ||
namespace tvm { | ||
|
||
constexpr const char* default_executor_type = "vm"; | ||
constexpr const char* vm_executor_type = "vm"; | ||
constexpr const char* graph_executor_type = "graph"; | ||
|
||
constexpr const char* default_target_str = "cpu"; | ||
constexpr const char* llvm_target_str = "llvm"; | ||
|
||
constexpr const char* cpu_target_str = "cpu"; | ||
constexpr const char* gpu_target_str = "gpu"; | ||
|
||
constexpr const char* default_tuning_type = "AutoTVM"; | ||
constexpr const char* autotvm_tuning_type = "AutoTVM"; | ||
constexpr const char* ansor_tuning_type = "Ansor"; | ||
|
||
constexpr const unsigned int default_opt_level = 3; | ||
|
||
} // namespace tvm | ||
} // namespace onnxruntime | ||
|
||
#endif // TVM_DEFAULTS_H |
Oops, something went wrong.