Navigation
API > API/Plugins > API/Plugins/LearningTraining > API/Plugins/LearningTraining/FSharedMemoryTrainerServerProces-
References
| Module | LearningTraining |
| Header | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Public/LearningExternalTrainer.h |
| Include | #include "LearningExternalTrainer.h" |
| Source | /Engine/Plugins/Experimental/LearningAgents/Source/LearningTraining/Private/LearningExternalTrainer.cpp |
FSharedMemoryTrainerServerProcess
(
const FString & TaskName,
const FString & CustomTrainerPath,
const FString & TrainerFileName,
const FString & PythonExecutablePath,
const FString & PythonContentPath,
const FString & IntermediatePath,
const int32 ProcessNum,
const float InTimeout,
const ESubprocessFlags TrainingProcessFlags
)
Remarks
Creates a training server as a subprocess using shared memory for communication. This will no-op if this UE process has a non-zero "LearningProcessIdx".
Parameters
| Name | Description |
|---|---|
| TaskName | The name of this training task (used to disambiguate filenames, etc.) |
| CustomTrainerPath | Path to check for custom trainer files |
| TrainerFileName | The name of the training file to use |
| PythonExecutablePath | Path to the python executable used for training. In general should be the python shipped with Unreal Editor. |
| PythonContentPath | Path to the Python Content folder provided by the Learning plugin |
| IntermediatePath | Path to the intermediate folder to write temporary files, logs, and snapshots to |
| ProcessNum | Number of processes to use for multi-processed experience gathering (used to allocate enough shared memory) |
| TrainingProcessFlags | Training server subprocess flags |