Home
last modified time | relevance | path

Searched refs:OH_NN_Memory (Results 1 – 25 of 30) sorted by relevance

12

/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/executor/
H A Dexecutor_test.cpp804 OH_NN_Memory* ptr = &memoryPtr;
830 OH_NN_Memory* ptr = &memoryPtr;
857 OH_NN_Memory* ptr = &memoryPtr;
881 OH_NN_Memory* ptr = &memoryPtr;
882 OH_NN_Memory** memory = &ptr;
907 OH_NN_Memory* ptr = &memoryPtr;
933 OH_NN_Memory* ptr = &memoryPtr;
958 OH_NN_Memory* ptr = &memoryPtr;
991 OH_NN_Memory* ptr = &memoryPtr;
1017 OH_NN_Memory* ptr = &memoryPtr;
[all …]
H A Dexecutor_test.h34 void SetMermory(OH_NN_Memory** &memory);
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/executor/
H A Dexecutor_test.cpp804 OH_NN_Memory* ptr = &memoryPtr;
830 OH_NN_Memory* ptr = &memoryPtr;
857 OH_NN_Memory* ptr = &memoryPtr;
881 OH_NN_Memory* ptr = &memoryPtr;
882 OH_NN_Memory** memory = &ptr;
907 OH_NN_Memory* ptr = &memoryPtr;
933 OH_NN_Memory* ptr = &memoryPtr;
958 OH_NN_Memory* ptr = &memoryPtr;
991 OH_NN_Memory* ptr = &memoryPtr;
1017 OH_NN_Memory* ptr = &memoryPtr;
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/frameworks/native/neural_network_runtime/
H A Dneural_network_runtime_compat.cpp100 NNRT_API OH_NN_Memory *OH_NNExecutor_AllocateInputMemory(OH_NNExecutor *executor, uint32_t inputInd… in OH_NNExecutor_AllocateInputMemory()
111 OH_NN_Memory *nnMemory = nullptr; in OH_NNExecutor_AllocateInputMemory()
122 NNRT_API OH_NN_Memory *OH_NNExecutor_AllocateOutputMemory(OH_NNExecutor *executor, uint32_t outputI… in OH_NNExecutor_AllocateOutputMemory()
133 OH_NN_Memory *nnMemory = nullptr; in OH_NNExecutor_AllocateOutputMemory()
144 …_NNExecutor_DestroyInputMemory(OH_NNExecutor *executor, uint32_t inputIndex, OH_NN_Memory **memory) in OH_NNExecutor_DestroyInputMemory()
169 …NExecutor_DestroyOutputMemory(OH_NNExecutor *executor, uint32_t outputIndex, OH_NN_Memory **memory) in OH_NNExecutor_DestroyOutputMemory()
195 uint32_t inputIndex, const OH_NN_Tensor *tensor, const OH_NN_Memory *memory) in OH_NNExecutor_SetInputWithMemory()
215 uint32_t outputIndex, const OH_NN_Memory *memory) in OH_NNExecutor_SetOutputWithMemory()
H A Dnnexecutor.h65 …nCode SetInputFromMemory(uint32_t index, const OH_NN_Tensor& nnTensor, const OH_NN_Memory& memory);
67 OH_NN_ReturnCode SetOutputFromMemory(uint32_t index, const OH_NN_Memory& memory);
69 OH_NN_ReturnCode CreateInputMemory(uint32_t index, size_t length, OH_NN_Memory** memory);
70 OH_NN_ReturnCode CreateOutputMemory(uint32_t index, size_t length, OH_NN_Memory** memory);
71 OH_NN_ReturnCode DestroyInputMemory(uint32_t index, OH_NN_Memory** memory);
72 OH_NN_ReturnCode DestroyOutputMemory(uint32_t index, OH_NN_Memory** memory);
H A Dnnexecutor.cpp644 uint32_t index, const OH_NN_Tensor& nnTensor, const OH_NN_Memory& memory) in SetInputFromMemory()
793 OH_NN_ReturnCode NNExecutor::SetOutputFromMemory(uint32_t index, const OH_NN_Memory& memory) in SetOutputFromMemory()
841 OH_NN_ReturnCode NNExecutor::CreateInputMemory(uint32_t index, size_t length, OH_NN_Memory** memory) in CreateInputMemory()
859 *memory = new(std::nothrow) OH_NN_Memory{deviceInputBuffer, length}; in CreateInputMemory()
873 OH_NN_ReturnCode NNExecutor::DestroyInputMemory(uint32_t index, OH_NN_Memory** memory) in DestroyInputMemory()
906 OH_NN_ReturnCode NNExecutor::CreateOutputMemory(uint32_t index, size_t length, OH_NN_Memory** memor… in CreateOutputMemory()
924 *memory = new(std::nothrow) OH_NN_Memory{deviceOutputBuffer, length}; in CreateOutputMemory()
938 OH_NN_ReturnCode NNExecutor::DestroyOutputMemory(uint32_t index, OH_NN_Memory** memory) in DestroyOutputMemory()
/ohos5.0/foundation/ai/neural_network_runtime/interfaces/kits/c/neural_network_runtime/
H A Dneural_network_runtime.h502 OH_NN_Memory *OH_NNExecutor_AllocateInputMemory(OH_NNExecutor *executor, uint32_t inputIndex, size_…
525 OH_NN_Memory *OH_NNExecutor_AllocateOutputMemory(OH_NNExecutor *executor, uint32_t outputIndex, siz…
550 void OH_NNExecutor_DestroyInputMemory(OH_NNExecutor *executor, uint32_t inputIndex, OH_NN_Memory **…
575 void OH_NNExecutor_DestroyOutputMemory(OH_NNExecutor *executor, uint32_t outputIndex, OH_NN_Memory
606 const OH_NN_Memory *memory);
636 const OH_NN_Memory *memory);
H A Dneural_network_runtime_type.h3597 typedef struct OH_NN_Memory { struct
3602 } OH_NN_Memory; argument
/ohos5.0/docs/zh-cn/application-dev/reference/apis-neural-network-runtime-kit/
H A Dneural__network__runtime_8h.md47 | [OH_NN_Memory](_o_h___n_n___memory.md) \* [OH_NNExecutor_AllocateInputMemory](_neural_network_run…
48 | [OH_NN_Memory](_o_h___n_n___memory.md) \* [OH_NNExecutor_AllocateOutputMemory](_neural_network_ru…
49 …xecutor) \*executor, uint32_t inputIndex, [OH_NN_Memory](_o_h___n_n___memory.md) \*\*memory) | 释放[
50 …ecutor) \*executor, uint32_t outputIndex, [OH_NN_Memory](_o_h___n_n___memory.md) \*\*memory) | 释放[
51 …r](_o_h___n_n___tensor.md) \*tensor, const [OH_NN_Memory](_o_h___n_n___memory.md) \*memory) | 将[OH…
52 …r) \*executor, uint32_t outputIndex, const [OH_NN_Memory](_o_h___n_n___memory.md) \*memory) | 将[OH…
H A D_o_h___n_n___memory.md1 # OH_NN_Memory chapter
34 void* const OH_NN_Memory::data
45 const size_t OH_NN_Memory::length
H A D_neural_network_runtime.md30 | struct [OH_NN_Memory](_o_h___n_n___memory.md) | 内存结构体。 |
57 | typedef struct [OH_NN_Memory](_o_h___n_n___memory.md) [OH_NN_Memory](#oh_nn_memory) | 内存结构体。 |
297 ### OH_NN_Memory subsection
300 typedef struct OH_NN_Memory OH_NN_Memory
1465 指向[OH_NN_Memory](_o_h___n_n___memory.md)实例的指针,如果创建失败就返回NULL。
1492 指向[OH_NN_Memory](_o_h___n_n___memory.md)实例的指针,如果创建失败就返回NULL。
1605 释放[OH_NN_Memory](_o_h___n_n___memory.md)实例指向的输入内存。
1630 释放[OH_NN_Memory](_o_h___n_n___memory.md)实例指向的输出内存。
1908 将[OH_NN_Memory](_o_h___n_n___memory.md)实例指向的硬件共享内存,并指定为单个输入使用的内存。
1921 | memory | 指向[OH_NN_Memory](_o_h___n_n___memory.md)的指针。 |
[all …]
H A D_neural_nework_runtime.md30 | struct [OH_NN_Memory](_o_h___n_n___memory.md) | 内存结构体。 |
57 | typedef struct [OH_NN_Memory](_o_h___n_n___memory.md) [OH_NN_Memory](#oh_nn_memory) | 内存结构体。 |
297 ### OH_NN_Memory subsection
300 typedef struct OH_NN_Memory OH_NN_Memory
1465 指向[OH_NN_Memory](_o_h___n_n___memory.md)实例的指针,如果创建失败就返回NULL。
1492 指向[OH_NN_Memory](_o_h___n_n___memory.md)实例的指针,如果创建失败就返回NULL。
1605 释放[OH_NN_Memory](_o_h___n_n___memory.md)实例指向的输入内存。
1630 释放[OH_NN_Memory](_o_h___n_n___memory.md)实例指向的输出内存。
1908 将[OH_NN_Memory](_o_h___n_n___memory.md)实例指向的硬件共享内存,并指定为单个输入使用的内存。
1921 | memory | 指向[OH_NN_Memory](_o_h___n_n___memory.md)的指针。 |
[all …]
H A DReadme-CN.md11 - [OH_NN_Memory](_o_h___n_n___memory.md)
H A Dneural__network__runtime__type_8h.md29 | struct [OH_NN_Memory](_o_h___n_n___memory.md) | 内存结构体。 |
56 | typedef struct [OH_NN_Memory](_o_h___n_n___memory.md) [OH_NN_Memory](_neural_network_runtime.md#…
/ohos5.0/foundation/ai/neural_network_runtime/example/deep_learning_framework/tflite/nnrt/
H A Dnnrt_implementation.h70OH_NN_Memory* (*OH_NNExecutor_AllocateInputMemory)(OH_NNExecutor* executor, uint32_t inputIndex, s…
71OH_NN_Memory* (*OH_NNExecutor_AllocateOutputMemory)(OH_NNExecutor* executor, uint32_t outputIndex,…
72 …xecutor_DestroyOutputMemory)(OH_NNExecutor* executor, uint32_t outputIndex, OH_NN_Memory** memory);
73 …NExecutor_DestroyInputMemory)(OH_NNExecutor* executor, uint32_t inputIndex, OH_NN_Memory** memory);
75 const OH_NN_Tensor* nnTensor, const OH_NN_Memory* memory);
77 const OH_NN_Memory* memory);
/ohos5.0/docs/en/application-dev/reference/apis-neural-network-runtime-kit/
H A Dneural__network__runtime_8h.md47 | [OH_NN_Memory](_o_h___n_n___memory.md) \* [OH_NNExecutor_AllocateInputMemory](_neural_network_run…
48 | [OH_NN_Memory](_o_h___n_n___memory.md) \* [OH_NNExecutor_AllocateOutputMemory](_neural_network_ru…
49 … uint32_t inputIndex, [OH_NN_Memory](_o_h___n_n___memory.md) \*\*memory) | Releases the input memo…
50 …uint32_t outputIndex, [OH_NN_Memory](_o_h___n_n___memory.md) \*\*memory) | Releases the output mem…
51 …r.md) \*tensor, const [OH_NN_Memory](_o_h___n_n___memory.md) \*memory) | Specifies the shared memo…
52 …_t outputIndex, const [OH_NN_Memory](_o_h___n_n___memory.md) \*memory) | Specifies the shared memo…
H A D_o_h___n_n___memory.md1 # OH_NN_Memory chapter
34 void* const OH_NN_Memory::data
45 const size_t OH_NN_Memory::length
H A DReadme-EN.md11 - [OH_NN_Memory](_o_h___n_n___memory.md)
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/neural_network_runtime_test/
H A Dneural_network_runtime_test.cpp1612 OH_NN_Memory* pMemory = &memory;
1632 OH_NN_Memory** memory = nullptr;
1652 OH_NN_Memory* memory = nullptr;
1676 OH_NN_Memory* pMemory = &memory;
1699 OH_NN_Memory* pMemory = &memory;
1716 OH_NN_Memory* pMemory = &memory;
1736 OH_NN_Memory** memory = nullptr;
1756 OH_NN_Memory* memory = nullptr;
1780 OH_NN_Memory* pMemory = &memory;
1870 OH_NN_Memory* memory = nullptr;
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_executor/
H A Dnn_executor_test.cpp165 OH_NN_Memory** memory = nullptr;
168 OH_NN_Memory* mPtr = &memoryPtr;
1585 OH_NN_Memory** memory = nullptr;
1589 OH_NN_Memory* ptr = &memoryPtr;
1622 OH_NN_Memory* ptr = &memoryPtr;
1745 OH_NN_Memory* ptr = &memoryPtr;
1779 OH_NN_Memory* ptr = &memoryPtr;
1854 OH_NN_Memory* ptr = &memoryPtr;
1886 OH_NN_Memory* ptr = &memoryPtr;
2009 OH_NN_Memory* ptr = &memoryPtr;
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/system_test/common/
H A Dnnrt_test.cpp155 OH_NN_Memory** pMemory) in SetInputFromMemory()
167 OH_NN_Memory* memory = OH_NNExecutor_AllocateInputMemory(m_executor, index, length); in SetInputFromMemory()
194 OH_NN_ReturnCode NNRtTest::SetOutputFromMemory(uint32_t index, size_t length, OH_NN_Memory** pMemor… in SetOutputFromMemory()
201 OH_NN_Memory* memory = OH_NNExecutor_AllocateOutputMemory(m_executor, index, length); in SetOutputFromMemory()
H A Dnnrt_test.h69 OH_NN_Memory** pMemory);
70 …virtual OH_NN_ReturnCode SetOutputFromMemory(uint32_t index, size_t length, OH_NN_Memory** pMemory…
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_runtime_test/
H A Dneural_network_runtime_test.cpp2096 OH_NN_Memory* pMemory = &memory;
2121 OH_NN_Memory** memory = nullptr;
2148 OH_NN_Memory* memory = nullptr;
2179 OH_NN_Memory* pMemory = &memory;
2198 OH_NN_Memory* pMemory = &memory;
2223 OH_NN_Memory** memory = nullptr;
2250 OH_NN_Memory* memory = nullptr;
2281 OH_NN_Memory* pMemory = &memory;
2310 OH_NN_Memory* pMemory = &memory;
2392 OH_NN_Memory* memory = nullptr;
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/system_test/
H A Dend_to_end_test.cpp105 OH_NN_ReturnCode End2EndTest::IsExpectedOutput(const OH_NN_Memory* outputMemory) in IsExpectedOutput()
213 OH_NN_Memory* firstAddendMemory;
219 OH_NN_Memory* secondAddendMemory;
224 OH_NN_Memory* outputMemory;
474 OH_NN_Memory* secondAddendMemory;
479 OH_NN_Memory* outputMemory;
H A Dend_to_end_test.h35 OH_NN_ReturnCode IsExpectedOutput(const OH_NN_Memory* outputMemory);

12