/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/ |
H A D | device.h | 66 virtual void* AllocateTensorBuffer(size_t length, std::shared_ptr<TensorDesc> tensor) = 0; 67 virtual void* AllocateTensorBuffer(size_t length, std::shared_ptr<NNTensor> tensor) = 0;
|
H A D | hdi_device_v1_0.h | 62 void* AllocateTensorBuffer(size_t length, std::shared_ptr<TensorDesc> tensor) override; 63 void* AllocateTensorBuffer(size_t length, std::shared_ptr<NNTensor> tensor) override;
|
H A D | hdi_device_v2_0.h | 62 void* AllocateTensorBuffer(size_t length, std::shared_ptr<TensorDesc> tensor) override; 63 void* AllocateTensorBuffer(size_t length, std::shared_ptr<NNTensor> tensor) override;
|
H A D | hdi_device_v2_1.h | 62 void* AllocateTensorBuffer(size_t length, std::shared_ptr<TensorDesc> tensor) override; 63 void* AllocateTensorBuffer(size_t length, std::shared_ptr<NNTensor> tensor) override;
|
H A D | hdi_device_v1_0.cpp | 391 void* HDIDeviceV1_0::AllocateTensorBuffer(size_t length, std::shared_ptr<TensorDesc> tensor) in AllocateTensorBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV1_0 396 void* HDIDeviceV1_0::AllocateTensorBuffer(size_t length, std::shared_ptr<NNTensor> tensor) in AllocateTensorBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV1_0
|
H A D | nnexecutor.cpp | 625 void* inputBuffer = m_device->AllocateTensorBuffer(length, inputTensor); in SetInput() 778 …void* deviceOutputBuffer = m_device->AllocateTensorBuffer(length, m_outputTensorDescs[index].first… in SetOutput() 853 … void* deviceInputBuffer = m_device->AllocateTensorBuffer(length, m_inputTensorDescs[index].first); in CreateInputMemory() 918 …void* deviceOutputBuffer = m_device->AllocateTensorBuffer(length, m_outputTensorDescs[index].first… in CreateOutputMemory()
|
H A D | hdi_device_v2_0.cpp | 428 void* HDIDeviceV2_0::AllocateTensorBuffer(size_t length, std::shared_ptr<TensorDesc> tensor) in AllocateTensorBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_0 433 void* HDIDeviceV2_0::AllocateTensorBuffer(size_t length, std::shared_ptr<NNTensor> tensor) in AllocateTensorBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_0
|
H A D | hdi_device_v2_1.cpp | 423 void* HDIDeviceV2_1::AllocateTensorBuffer(size_t length, std::shared_ptr<TensorDesc> tensor) in AllocateTensorBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_1 428 void* HDIDeviceV2_1::AllocateTensorBuffer(size_t length, std::shared_ptr<NNTensor> tensor) in AllocateTensorBuffer() function in OHOS::NeuralNetworkRuntime::HDIDeviceV2_1
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_executor/ |
H A D | nn_executor_test.cpp | 77 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<TensorDesc>)); 78 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<NNTensor>)); 158 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_outputTensorDescs[m_in… 173 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_inputTensorDescs[m_ind… 1659 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_inputTensorDescs[m_ind… 1706 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_inputTensorDescs[m_ind… 1815 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_inputTensorDescs[m_ind… 1923 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_outputTensorDescs[m_in… 1970 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_outputTensorDescs[m_in… 2079 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_outputTensorDescs[m_in…
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_compiled_cache/ |
H A D | nn_compiled_cache_test.cpp | 67 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<TensorDesc>)); 68 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<NNTensor>));
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_backend/ |
H A D | nn_backend_test.cpp | 65 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<TensorDesc>)); 66 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<NNTensor>));
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_compiler/ |
H A D | nn_compiler_test.cpp | 68 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<TensorDesc>)); 69 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<NNTensor>));
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_tensor/ |
H A D | nn_tensor_test.cpp | 73 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<TensorDesc>)); 74 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<NNTensor>));
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_runtime_test/ |
H A D | neural_network_runtime_test.cpp | 293 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<TensorDesc>)); 294 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<NNTensor>)); 1857 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_inputTensorDescs[0].fi… 2037 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_outputTensorDescs[0].f…
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/hdi_device/ |
H A D | hdi_device_test.cpp | 1348 void* ret = hdiDevice->AllocateTensorBuffer(length, tensor); 1366 void* ret = hdiDevice->AllocateTensorBuffer(length, tensor);
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/hdi_device/ |
H A D | hdi_device_test.cpp | 1490 void* ret = hdiDevice->AllocateTensorBuffer(length, tensor); 1508 void* ret = hdiDevice->AllocateTensorBuffer(length, tensor); 2862 void* ret = hdiDevice->AllocateTensorBuffer(length, tensor); 2880 void* ret = hdiDevice->AllocateTensorBuffer(length, tensor);
|
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_core_test/ |
H A D | neural_network_core_test.cpp | 131 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<TensorDesc>)); 132 MOCK_METHOD2(AllocateTensorBuffer, void*(size_t, std::shared_ptr<NNTensor>));
|