浏览代码

Update com.unity.ml-agents/Runtime/Inference/TensorGenerator.cs

Co-authored-by: Chris Elion <chris.elion@unity3d.com>
/MLA-1734-demo-provider
GitHub 4 年前
当前提交
2c4d7716
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 4
      com.unity.ml-agents/Runtime/Inference/TensorGenerator.cs

4
com.unity.ml-agents/Runtime/Inference/TensorGenerator.cs


public void InitializeObservations(List<ISensor> sensors, ITensorAllocator allocator)
{
// Loop through the sensors on a representative agent.
// For vector observations, add the index to the (single) ObservationGenerator
// For visual observations, make a NonVectorObservationInputGenerator
// All vector observations use a shared ObservationGenerator since they are concatenated.
// All other observations use a unique ObservationInputGenerator
var visIndex = 0;
ObservationGenerator vecObsGen = null;
for (var sensorIndex = 0; sensorIndex < sensors.Count; sensorIndex++)

正在加载...
取消
保存