Home
last modified time | relevance | path

Searched refs:device_info_ (Results 1 – 23 of 23) sorted by relevance

/third_party/mindspore/mindspore/lite/src/
Dinner_context.cc105 cpu_ctx.device_info_.cpu_device_info_.cpu_bind_mode_ = NO_BIND; in SetContextDevice()
160 … device_ctx.device_info_.npu_device_info_.frequency_ != hiai::AiModelDescription_Frequency_LOW && in Init()
161 …device_ctx.device_info_.npu_device_info_.frequency_ != hiai::AiModelDescription_Frequency_MEDIUM && in Init()
162 … device_ctx.device_info_.npu_device_info_.frequency_ != hiai::AiModelDescription_Frequency_HIGH && in Init()
163 …device_ctx.device_info_.npu_device_info_.frequency_ != hiai::AiModelDescription_Frequency_EXTREME)… in Init()
165 << device_ctx.device_info_.npu_device_info_.frequency_; in Init()
166 … device_ctx.device_info_.npu_device_info_.frequency_ = hiai::AiModelDescription_Frequency_HIGH; in Init()
270 device_info = &device.device_info_; in GetCpuDeviceInfo()
318 …return device.device_type_ == DT_CPU && (device.device_info_.cpu_device_info_.cpu_bind_mode_ < NO_… in IsCpuBindModeInvalid()
319 … device.device_info_.cpu_device_info_.cpu_bind_mode_ > MID_CPU); in IsCpuBindModeInvalid()
[all …]
/third_party/mindspore/mindspore/lite/java/native/runtime/
Dms_config.cpp32 cpu_device_ctx.device_info_.cpu_device_info_.cpu_bind_mode_ = mindspore::lite::NO_BIND; in Java_com_mindspore_lite_config_MSConfig_createMSConfig()
35 cpu_device_ctx.device_info_.cpu_device_info_.cpu_bind_mode_ = mindspore::lite::HIGHER_CPU; in Java_com_mindspore_lite_config_MSConfig_createMSConfig()
38 cpu_device_ctx.device_info_.cpu_device_info_.cpu_bind_mode_ = mindspore::lite::MID_CPU; in Java_com_mindspore_lite_config_MSConfig_createMSConfig()
46 cpu_device_ctx.device_info_.cpu_device_info_.enable_float16_ = true; in Java_com_mindspore_lite_config_MSConfig_createMSConfig()
56 gpu_device_ctx.device_info_.gpu_device_info_.enable_float16_ = true; in Java_com_mindspore_lite_config_MSConfig_createMSConfig()
/third_party/mindspore/mindspore/lite/src/common/
Dcontext_util.cc42 cpu_info->SetEnableFP16(cpu_context.device_info_.cpu_device_info_.enable_float16_); in CPUDeviceInfoFromCPUDeviceContext()
54 gpu_info->SetEnableFP16(gpu_context.device_info_.gpu_device_info_.enable_float16_); in GPUDeviceInfoFromGPUDeviceContext()
55 gpu_info->SetDeviceID(gpu_context.device_info_.gpu_device_info_.gpu_device_id_); in GPUDeviceInfoFromGPUDeviceContext()
68 npu_info->SetFrequency(npu_context.device_info_.npu_device_info_.frequency_); in NPUDeviceInfoFromNPUDeviceContext()
81 ascend310_info->SetDeviceID(ascend310_context.device_info_.ascend310_device_info_.device_id_); in Ascend310DeviceInfoFromAscend310DeviceContext()
130 ms_context->SetThreadAffinity(device_context.device_info_.cpu_device_info_.cpu_bind_mode_); in MSContextFromContext()
/third_party/mindspore/mindspore/core/ir/
Dmeta_tensor.h138 DeviceInfo device_info() const { return device_info_; } in device_info()
141 void set_device_info(const DeviceInfo &device_info) { device_info_ = device_info; } in set_device_info()
198 DeviceInfo device_info_; variable
Dmeta_tensor.cc51 device_info_ = meta_tensor.device_info(); in operator =()
/third_party/mindspore/mindspore/lite/test/ut/src/runtime/kernel/arm/fp32_grad/
Dnetwork_test.cc102 context->device_list_[0].device_info_.cpu_device_info_.cpu_bind_mode_ = lite::NO_BIND; in TEST_F()
127 context->device_list_[0].device_info_.cpu_device_info_.cpu_bind_mode_ = lite::NO_BIND; in TEST_F()
149 context.device_list_[0].device_info_.cpu_device_info_.cpu_bind_mode_ = lite::NO_BIND; in TEST_F()
168 context.device_list_[0].device_info_.cpu_device_info_.cpu_bind_mode_ = lite::NO_BIND; in TEST_F()
/third_party/mindspore/mindspore/lite/src/delegate/tensorrt/
Dtensorrt_delegate.cc74 device_info_ = gpu_info; in Init()
107 lite::SetCudaDevice(device_info_); in Init()
119 lite::SetCudaDevice(device_info_); in Build()
185 …TensorRTSubGraph(ops, in_tensors, out_tensors, context_, device_info_, runtime_, support_hw_resize… in CreateTensorRTGraph()
Dtensorrt_subgraph.h38 device_info_(device_info), in TensorRTSubGraph()
85 std::shared_ptr<GPUDeviceInfo> device_info_{nullptr};
Dtensorrt_delegate.h56 std::shared_ptr<GPUDeviceInfo> device_info_{nullptr};
Dtensorrt_subgraph.cc103 if (device_info_->GetEnableFP16() && runtime_->GetBuilder()->platformHasFastFp16()) { in SetDeviceConfig()
301 lite::SetCudaDevice(device_info_); in Prepare()
427 lite::SetCudaDevice(device_info_); in Execute()
Dtensorrt_utils.h76 void SetCudaDevice(std::shared_ptr<GPUDeviceInfo> device_info_);
Dtensorrt_utils.cc264 void SetCudaDevice(std::shared_ptr<GPUDeviceInfo> device_info_) { in SetCudaDevice() argument
270 int set_device_id = static_cast<int>(device_info_->GetDeviceID()); in SetCudaDevice()
/third_party/mindspore/mindspore/lite/test/st/
Dmindrt_parallel_runtime_test.cc69 gpu_device_ctx.device_info_.gpu_device_info_.enable_float16_ = false; in TEST_F()
120 cpu_device_ctx.device_info_.cpu_device_info_.enable_float16_ = true; in TEST_F()
Dsub_graph_test.cc329 cpu_device_ctx.device_info_.cpu_device_info_.cpu_bind_mode_ = lite::MID_CPU; in TEST_F()
/third_party/mindspore/mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/include/
Dcontext.h59 DeviceInfo device_info_; member
/third_party/mindspore/mindspore/lite/include/
Dcontext.h62 DeviceInfo device_info_; member
/third_party/mindspore/mindspore/lite/tools/benchmark/
Dbenchmark.cc125 … cpu_device_ctx.device_info_.cpu_device_info_.cpu_bind_mode_ = CpuBindMode(flags_->cpu_bind_mode_); in InitContext()
127 cpu_device_ctx.device_info_.cpu_device_info_.cpu_bind_mode_ = NO_BIND; in InitContext()
129 cpu_device_ctx.device_info_.cpu_device_info_.enable_float16_ = flags_->enable_fp16_; in InitContext()
133 gpu_device_ctx.device_info_.gpu_device_info_.enable_float16_ = flags_->enable_fp16_; in InitContext()
139 npu_device_ctx.device_info_.npu_device_info_.frequency_ = AiModelDescription_Frequency_HIGH; in InitContext()
/third_party/mindspore/mindspore/lite/examples/transfer_learning/src/
Dnet_runner.cc77 context.device_list_[0].device_info_.cpu_device_info_.cpu_bind_mode_ = mindspore::lite::NO_BIND; in InitAndFigureInputs()
78 context.device_list_[0].device_info_.cpu_device_info_.enable_float16_ = enable_fp16_; in InitAndFigureInputs()
/third_party/mindspore/mindspore/lite/examples/train_lenet/src/
Dnet_runner.cc148 context.device_list_[0].device_info_.cpu_device_info_.cpu_bind_mode_ = mindspore::lite::NO_BIND; in InitAndFigureInputs()
149 context.device_list_[0].device_info_.cpu_device_info_.enable_float16_ = enable_fp16_; in InitAndFigureInputs()
/third_party/mindspore/mindspore/lite/micro/example/mnist_stm32f746/mnist_stm32f746/benchmark/
Dbenchmark.cc126 context->device_list_[0].device_info_.cpu_device_info_.cpu_bind_mode_); in main()
/third_party/mindspore/mindspore/lite/micro/example/mnist_x86/benchmark/
Dbenchmark.cc126 context->device_list_[0].device_info_.cpu_device_info_.cpu_bind_mode_); in main()
/third_party/mindspore/mindspore/lite/test/ut/src/
Dinfer_test.cc246 context->device_list_[0].device_info_.cpu_device_info_.cpu_bind_mode_ = lite::NO_BIND; in TEST_F()
/third_party/mindspore/mindspore/lite/tools/benchmark_train/
Dnet_train.cc407 …context.device_list_[0].device_info_.cpu_device_info_.cpu_bind_mode_ = FlagToBindMode(flags_->cpu_… in CreateAndRunNetwork()
408 context.device_list_[0].device_info_.cpu_device_info_.enable_float16_ = flags_->enable_fp16_; in CreateAndRunNetwork()