浏览代码

Merge pull request #4921 from Unity-Technologies/fix-permission-timers

Use more generic exception catching
/bullet-hell-barracuda-test-1.3.1
GitHub 4 年前
当前提交
f80d0260
共有 2 个文件被更改,包括 3 次插入2 次删除
  1. 1
      com.unity.ml-agents/CHANGELOG.md
  2. 4
      com.unity.ml-agents/Runtime/Timer.cs

1
com.unity.ml-agents/CHANGELOG.md


- Removed unnecessary memory allocations in `SideChannelManager.GetSideChannelMessage()` (#4886)
- Removed several memory allocations that happened during inference. On a test scene, this
reduced the amount of memory allocated by approximately 25%. (#4887)
- Properly catch permission errors when writing timer files. (#4921)
#### ml-agents / ml-agents-envs / gym-unity (Python)
- Fixed a bug that would cause an exception when `RunOptions` was deserialized via `pickle`. (#4842)

4
com.unity.ml-agents/Runtime/Timer.cs


SaveJsonTimers(fs);
fs.Close();
}
catch (IOException)
catch (SystemException)
// It's possible we don't have write access to the directory.
// We may not have write access to the directory.
Debug.LogWarning($"Unable to save timers to file {filename}");
}
#endif

正在加载...
取消
保存