|
|
@@ -92,7 +92,7 @@ void RegisterAiCpuEngine() { |
|
|
|
const std::string vm_aicpu = "DNN_VM_AICPU_ASCEND"; |
|
|
|
std::vector<std::string> mem_type_aicpu; |
|
|
|
mem_type_aicpu.emplace_back(GE_ENGINE_ATTR_MEM_TYPE_HBM); |
|
|
|
DNNEngineAttribute attr_aicpu = {vm_aicpu, mem_type_aicpu, COST_3, DEVICE, FORMAT_RESERVED, FORMAT_RESERVED}; |
|
|
|
DNNEngineAttribute attr_aicpu = {vm_aicpu, mem_type_aicpu, COST_2, DEVICE, FORMAT_RESERVED, FORMAT_RESERVED}; |
|
|
|
DNNEnginePtr vm_engine_ptr = MakeShared<AICpuDNNEngine>(attr_aicpu); |
|
|
|
if (vm_engine_ptr == nullptr) { |
|
|
|
GELOGE(ge::FAILED, "make vm_engine_ptr failed"); |
|
|
@@ -107,7 +107,7 @@ void RegisterAiCpuTFEngine() { |
|
|
|
const std::string vm_aicpu_tf = "DNN_VM_AICPU"; |
|
|
|
std::vector<std::string> mem_type_aicpu_tf; |
|
|
|
mem_type_aicpu_tf.emplace_back(GE_ENGINE_ATTR_MEM_TYPE_HBM); |
|
|
|
DNNEngineAttribute attr_aicpu_tf = {vm_aicpu_tf, mem_type_aicpu_tf, COST_2, DEVICE, FORMAT_RESERVED, FORMAT_RESERVED}; |
|
|
|
DNNEngineAttribute attr_aicpu_tf = {vm_aicpu_tf, mem_type_aicpu_tf, COST_3, DEVICE, FORMAT_RESERVED, FORMAT_RESERVED}; |
|
|
|
DNNEnginePtr vm_engine_ptr = MakeShared<AICpuTFDNNEngine>(attr_aicpu_tf); |
|
|
|
if (vm_engine_ptr == nullptr) { |
|
|
|
GELOGE(ge::FAILED, "make vm_engine_ptr failed"); |
|
|
|