浏览代码

renamed run to networkOutput

/develop-generalizationTraining-TrainerController
vincentpierre 7 年前
当前提交
b393bcbf
共有 1 个文件被更改,包括 5 次插入5 次删除
  1. 10
      unity-environment/Assets/ML-Agents/Scripts/CoreBrainInternal.cs

10
unity-environment/Assets/ML-Agents/Scripts/CoreBrainInternal.cs


runner.AddInput(graph[graphScope + ObservationPlaceholderName[obs_number]][0], observationMatrixList[obs_number]);
}
TFTensor[] runned;
TFTensor[] networkOutput;
runned = runner.Run();
networkOutput = runner.Run();
}
catch (TFException e)
{

runner.AddInput(graph[graphScope + RecurrentInPlaceholderName][0], inputOldMemories);
runner.Fetch(graph[graphScope + RecurrentOutPlaceholderName][0]);
float[,] recurrent_tensor = runned[1].GetValue() as float[,];
float[,] recurrent_tensor = networkOutput[1].GetValue() as float[,];
int i = 0;
foreach (int k in agentKeys)

if (brain.brainParameters.actionSpaceType == StateType.continuous)
{
float[,] output = runned[0].GetValue() as float[,];
float[,] output = networkOutput[0].GetValue() as float[,];
int i = 0;
foreach (int k in agentKeys)
{

}
else if (brain.brainParameters.actionSpaceType == StateType.discrete)
{
long[,] output = runned[0].GetValue() as long[,];
long[,] output = networkOutput[0].GetValue() as long[,];
int i = 0;
foreach (int k in agentKeys)
{

正在加载...
取消
保存