public override void WriteTo(BinaryWriter writer) { var Wh = (FeedForward)_input.FindByName("Wh"); var Uh = (FeedForward)_memory.FindByName("Uh"); writer.Write(_inputSize); writer.Write(_memory.Id); _memory.Data.WriteTo(writer); _Serialise(_activation, writer); Wh.WriteTo(writer); Uh.WriteTo(writer); }
public override void WriteTo(BinaryWriter writer) { var Wf = _input.FindByName("Wf") as FeedForward; var Wi = _input.FindByName("Wi") as FeedForward; var Wo = _input.FindByName("Wo") as FeedForward; var Wc = _input.FindByName("Wc") as FeedForward; var Uf = _memory.FindByName("Uf") as FeedForward; var Ui = _memory.FindByName("Ui") as FeedForward; var Uo = _memory.FindByName("Uo") as FeedForward; var Uc = _memory.FindByName("Uc") as FeedForward; writer.Write(_inputSize); writer.Write(_memory.Id); _memory.Data.WriteTo(writer); Wf.WriteTo(writer); Wi.WriteTo(writer); Wo.WriteTo(writer); Wc.WriteTo(writer); Uf.WriteTo(writer); Ui.WriteTo(writer); Uo.WriteTo(writer); Uc.WriteTo(writer); }
public override void WriteTo(BinaryWriter writer) { var Wh = _input.FindByName("Wh") as FeedForward; var Wy = _input.FindByName("Wy") as FeedForward; var Uh = _memory.FindByName("Uh") as FeedForward; writer.Write(_isElman); writer.Write(_inputSize); writer.Write(_memory.Id); _memory.Data.WriteTo(writer); _Serialise(_activation, writer); _Serialise(_activation2, writer); Wh.WriteTo(writer); Wy.WriteTo(writer); Uh.WriteTo(writer); }
public override void WriteTo(BinaryWriter writer) { var Wx = _input.FindByName("Wx"); var Wi = _input.FindByName("Wi"); var Wf = _input.FindByName("Wf"); var Ui = _memory.FindByName("Ui"); var Uf = _memory.FindByName("Uf"); writer.Write(_inputSize); writer.Write(_memory.Id); _memory.Data.WriteTo(writer); Wx.WriteTo(writer); Wi.WriteTo(writer); Wf.WriteTo(writer); Ui.WriteTo(writer); Uf.WriteTo(writer); }
public override void WriteTo(BinaryWriter writer) { var Wh = _input.FindByName("Wh"); var Wr = _input.FindByName("Wr"); var Wz = _input.FindByName("Wz"); var Uh = _memory.FindByName("Uh"); var Ur = _memory.FindByName("Ur"); var Uz = _memory.FindByName("Uz"); writer.Write(_inputSize); writer.Write(_memory.Id); _memory.Data.WriteTo(writer); Wh.WriteTo(writer); Wr.WriteTo(writer); Wz.WriteTo(writer); Uh.WriteTo(writer); Ur.WriteTo(writer); Uz.WriteTo(writer); }