Navigation
API > API/Plugins > API/Plugins/LearningAgentsTraining > API/Plugins/LearningAgentsTraining/ULearningAgentsCommunicatorLibra-
Description
Start a local python training sub-process which will communicate via shared memory. Shared memory has the least communication overhead so prefer this for local development.
This must be called on game thread!
| Name | SpawnSharedMemoryTrainingProcess |
| Type | function |
| Header File | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Public/LearningAgentsCommunicator.h |
| Include Path | #include "LearningAgentsCommunicator.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningAgentsTraining/Private/LearningAgentsCommunicator.cpp |
UFUNCTION (BlueprintCallable, Category="LearningAgents",
Meta=(AutoCreateRefTerm="TrainerProcessSettings,SharedMemorySettings"))
static FLearningAgentsSharedMemoryTrainerProcess SpawnSharedMemoryTrainingProcess
(
const FLearningAgentsTrainerProcessSettings & TrainerProcessSettings,
const FLearningAgentsSharedMemoryCommunicatorSettings & SharedMemorySettings
)
Parameters
| Name | Remarks |
|---|---|
| TrainerProcessSettings | Settings universal to all trainer processes. |
| FLearningAgentsSharedMemoryCommunicatorSettings | Settings specific to shared memory communicators. |