ANeuralNetworksMemory is an opaque type that represents memory.
This type is used to represent shared memory, memory mapped files,
and similar memories.
By using shared memory, a program can efficiently communicate to the
runtime and drivers the tensors that define a model. See
{@link ANeuralNetworksModel_setOperandValueFromMemory}. An application
should typically create one shared memory object that contains every tensor
needed to define a model. {@link ANeuralNetworksMemory_createFromFd} can be
used to create shared memory from a file handle.
Memory objects can also be used to specify the input and output arguments of
an execution. See {@link ANeuralNetworksExecution_setInputFromMemory}
and {@link ANeuralNetworksExecution_setOutputFromMemory}.
ANeuralNetworksMemory is an opaque type that represents memory.
This type is used to represent shared memory, memory mapped files, and similar memories.
By using shared memory, a program can efficiently communicate to the runtime and drivers the tensors that define a model. See {@link ANeuralNetworksModel_setOperandValueFromMemory}. An application should typically create one shared memory object that contains every tensor needed to define a model. {@link ANeuralNetworksMemory_createFromFd} can be used to create shared memory from a file handle.
Memory objects can also be used to specify the input and output arguments of an execution. See {@link ANeuralNetworksExecution_setInputFromMemory} and {@link ANeuralNetworksExecution_setOutputFromMemory}.
Available since API level 27.