HDK
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
cann_provider_options.h
Go to the documentation of this file.
1 // Copyright (c) Microsoft Corporation. All rights reserved.
2 // Copyright (c) Huawei. All rights reserved.
3 // Licensed under the MIT License.
4 
5 #pragma once
6 
7 #include <string>
8 
9 #include "onnxruntime_c_api.h"
10 #include "core/framework/arena_extend_strategy.h"
11 
13  int device_id; // CANN device id
14  size_t npu_mem_limit; // BFC Arena memory limit for CANN
15  onnxruntime::ArenaExtendStrategy arena_extend_strategy; // Strategy used to grow the memory arena
16  int enable_cann_graph; // Flag indicating if prioritizing the use of
17  // CANN's graph-running capabilities
18  int dump_graphs; // Flag indicating if dumping graphs
19  std::string precision_mode; // Operator Precision Mode
20  std::string op_select_impl_mode; // Operator-level model compilation options:
21  // Mode selection
22  std::string optypelist_for_implmode; // Operator-level model compilation options:
23  // Operator list
24  OrtArenaCfg* default_memory_arena_cfg; // CANN memory arena configuration parameters
25 };
GLsizei const GLchar *const * string
Definition: glcorearb.h:814
onnxruntime::ArenaExtendStrategy arena_extend_strategy
OrtArenaCfg * default_memory_arena_cfg