浏览代码

Added an error message when no model was present for inference (#1345)

/develop-generalizationTraining-TrainerController
GitHub 6 年前
当前提交
e1005d93
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 6
      UnitySDK/Assets/ML-Agents/Scripts/LearningBrain.cs

6
UnitySDK/Assets/ML-Agents/Scripts/LearningBrain.cs


{
return;
}
if (_engine == null)
{
Debug.LogError($"No model was present for the Brain {name}.");
return;
}
// Prepare the input tensors to be feed into the engine
_tensorGenerator.GenerateTensors(_inferenceInputs, currentBatchSize, agentInfos);

正在加载...
取消
保存