浏览代码

Upgrade to barracuda 0.4.0-preview. (#3310)

/asymm-envs
GitHub 5 年前
当前提交
6ddcef36
共有 6 个文件被更改,包括 43 次插入11 次删除
  1. 5
      com.unity.ml-agents/Editor/Unity.ML-Agents.Editor.asmdef
  2. 9
      com.unity.ml-agents/Runtime/Unity.ML-Agents.asmdef
  3. 8
      com.unity.ml-agents/Tests/Editor/Unity.ML-Agents.Editor.Tests.asmdef
  4. 2
      com.unity.ml-agents/package.json
  5. 19
      Project/Assets/ML-Agents/Editor/DisableBurstFromMenu.cs
  6. 11
      Project/Assets/ML-Agents/Editor/DisableBurstFromMenu.cs.meta

5
com.unity.ml-agents/Editor/Unity.ML-Agents.Editor.asmdef


{
"name": "Unity.ML-Agents.Editor",
"references": [
"Unity.ML-Agents"
"Unity.ML-Agents",
"Barracuda"
],
"includePlatforms": [
"Editor"

"defineConstraints": [],
"versionDefines": [],
"noEngineReferences": false
}
}

9
com.unity.ml-agents/Runtime/Unity.ML-Agents.asmdef


{
"name": "Unity.ML-Agents",
"references": [],
"references": [
"Barracuda"
],
"overrideReferences": true,
"overrideReferences": false,
"Barracuda.dll",
}
}

8
com.unity.ml-agents/Tests/Editor/Unity.ML-Agents.Editor.Tests.asmdef


"name": "Unity.ML-Agents.Editor.Tests",
"references": [
"Unity.ML-Agents.Editor",
"Unity.ML-Agents"
"Unity.ML-Agents",
"Barracuda"
],
"optionalUnityReferences": [
"TestAssemblies"

"precompiledReferences": [
"System.IO.Abstractions.dll",
"System.IO.Abstractions.TestingHelpers.dll",
"Google.Protobuf.dll",
"Barracuda.dll"
"Google.Protobuf.dll"
}
}

2
com.unity.ml-agents/package.json


"unity": "2018.4",
"description": "Add interactivity to your game with ML-Agents trained using Deep Reinforcement Learning. \n\nFor best results, use this text to summarize: \n\u25AA What the package does \n\u25AA How it can benefit the user \n\nNote: Special formatting characters are supported, including line breaks ('\\n') and bullets ('\\u25AA').",
"dependencies": {
"com.unity.barracuda": "0.3.2-preview"
"com.unity.barracuda": "0.4.0-preview"
}
}

19
Project/Assets/ML-Agents/Editor/DisableBurstFromMenu.cs


#if UNITY_CLOUD_BUILD
using UnityEditor;
public class DisableBurstFromMenu
{
/// This method is needed to disable Burst compilation on windows for our cloudbuild tests.
/// Barracuda 0.4.0-preview depends on a version of Burst (1.1.1) which does not allow
/// users to disable burst compilation on a per platform basis. The burst version 1.3.0-preview-1
/// allows for cross compilation, but is not released yet.
///
/// We will be able to remove this when
/// 1. Barracuda updates burst 1.3.0-preview-1 or
/// 2. We update our edior version for our tests to 2019.1+
public static void DisableBurstCompilation()
{
EditorApplication.ExecuteMenuItem("Jobs/Burst/Enable Compilation");
}
}
#endif

11
Project/Assets/ML-Agents/Editor/DisableBurstFromMenu.cs.meta


fileFormatVersion: 2
guid: 17c1cb2556fa64702acde6d37c5f21d2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
正在加载...
取消
保存