Navigation
API > API/Runtime > API/Runtime/NNE > API/Runtime/NNE/IModelCPU
Description
Create a model instance for inference
The runtime have the opportunity to share the model weights among multiple IModelInstanceCPU created from an IModelCPU instance, however this is not mandatory. The caller can decide to convert the result into a shared pointer if required (e.g. if the model needs to be shared with an async task for evaluation).
| Name | CreateModelInstanceCPU |
| Type | function |
| Header File | /Engine/Source/Runtime/NNE/Public/NNERuntimeCPU.h |
| Include Path | #include "NNERuntimeCPU.h" |
TSharedPtr< UE::NNE::IModelInstanceCPU > CreateModelInstanceCPU()
A caller owned model representing the neural network instance created.