InvalidOperationException:序列化Synapse类型的对象时检测到循环引用

时间:2017-10-19 05:02:17

标签: c# unity3d

我正在尝试保存培训数据

public void saveNetwork()
{
    var serializer = new XmlSerializer (OutputLayer.GetType());
    var stream = new FileStream ("Assets/Dataset.xml", FileMode.CreateNew);
    serializer.Serialize (stream, OutputLayer);
    stream.Close ();
}

0 个答案:

没有答案