浏览代码

Develop barracuda 0.3.x (#2952)

* Removed Barracuda as drop-in library, added Barracuda package dependency

* Removed Google Protobuf library as now it comes with Barracuda package

* List<T>.Length seems to be extension, which is not available in .NET coming with Unity 2017, switched to .Count
/develop-newnormalization
Chris Elion 5 年前
当前提交
e2e76c51
共有 9 个文件被更改,包括 8 次插入1043 次删除
  1. 1
      .gitignore
  2. 4
      UnitySDK/Assets/ML-Agents/Scripts/InferenceBrain/TensorApplier.cs
  3. 2
      UnitySDK/Assets/ML-Agents/Scripts/InferenceBrain/TensorGenerator.cs
  4. 5
      UnitySDK/UnityPackageManager/manifest.json
  5. 1001
      UnitySDK/Assets/ML-Agents/Plugins/ProtoBuffer/Google.Protobuf.dll
  6. 30
      UnitySDK/Assets/ML-Agents/Plugins/ProtoBuffer/Google.Protobuf.dll.meta
  7. 8
      UnitySDK/Assets/ML-Agents/Plugins/Barracuda.Core.meta

1
.gitignore


/UnitySDK/[Bb]uild/
/UnitySDK/[Bb]uilds/
/UnitySDK/[Pp]ackages/
/UnitySDK/[Uu]nity[Pp]ackage[Mm]anager/
/UnitySDK/Assets/AssetStoreTools*
/UnitySDK/Assets/Plugins*
/UnitySDK/Assets/Demonstrations*

4
UnitySDK/Assets/ML-Agents/Scripts/InferenceBrain/TensorApplier.cs


{
var model = (Model)barracudaModel;
for (var i = 0; i < model?.memories.Length; i++)
for (var i = 0; i < model?.memories.Count; i++)
new BarracudaMemoryOutputApplier(model.memories.Length, i, memories);
new BarracudaMemoryOutputApplier(model.memories.Count, i, memories);
}
}
}

2
UnitySDK/Assets/ML-Agents/Scripts/InferenceBrain/TensorGenerator.cs


if (barracudaModel != null)
{
var model = (Model)barracudaModel;
for (var i = 0; i < model.memories.Length; i++)
for (var i = 0; i < model.memories.Count; i++)
{
m_Dict[model.memories[i].input] =
new BarracudaRecurrentInputGenerator(i, allocator, memories);

5
UnitySDK/UnityPackageManager/manifest.json


{
"dependencies": {
"com.unity.barracuda": "0.3.2-preview"
}
}

1001
UnitySDK/Assets/ML-Agents/Plugins/ProtoBuffer/Google.Protobuf.dll
文件差异内容过多而无法显示
查看文件

30
UnitySDK/Assets/ML-Agents/Plugins/ProtoBuffer/Google.Protobuf.dll.meta


fileFormatVersion: 2
guid: 0836ffd04a4924861a2d58aa4b111937
PluginImporter:
externalObjects: {}
serializedVersion: 2
iconMap: {}
executionOrder: {}
isPreloaded: 0
isOverridable: 0
platformData:
- first:
Any:
second:
enabled: 1
settings: {}
- first:
Editor: Editor
second:
enabled: 0
settings:
DefaultValueInitialized: true
- first:
Windows Store Apps: WindowsStoreApps
second:
enabled: 0
settings:
CPU: AnyCPU
userData:
assetBundleName:
assetBundleVariant:

8
UnitySDK/Assets/ML-Agents/Plugins/Barracuda.Core.meta


fileFormatVersion: 2
guid: 13df47c141a644f57bdb0a667879ef0b
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存