1# OH_NN_Memory 2 3 4## Overview 5 6Defines the memory structure. 7 8**Since**: 9 9 10**Deprecated**: This module is deprecated since API version 11. 11 12**Substitute**: You are advised to use [NN_Tensor](_neural_network_runtime.md#nn_tensor). 13 14**Related module**: [NeuralNetworkRuntime](_neural_network_runtime.md) 15 16 17## Summary 18 19 20### Member Variables 21 22| Name| Description| 23| -------- | -------- | 24| [data](#data) | Pointer to the shared memory. The shared memory is usually applied for by the underlying hardware driver.| 25| [length](#length) | Length of the shared memory, in bytes.| 26 27 28## Member Variable Description 29 30 31### data 32 33``` 34void* const OH_NN_Memory::data 35``` 36 37**Description** 38 39Pointer to the shared memory. The shared memory is usually applied for by the underlying hardware driver. 40 41 42### length 43 44``` 45const size_t OH_NN_Memory::length 46``` 47 48**Description** 49 50Length of the shared memory, in bytes. 51