コード例 #1
0
ファイル: Dataset8.cs プロジェクト: liaoheping/OCRonet
 public override void Save(BinaryWriter writer)
 {
     BinIO.magic_write(writer, "dataset");
     BinIO.scalar_write(writer, DatatypeSize);
     BinIO.narray_write(writer, data);
     BinIO.narray_write(writer, classes);
     BinIO.scalar_write(writer, nc);
     BinIO.scalar_write(writer, nf);
 }
コード例 #2
0
ファイル: RowDataset8.cs プロジェクト: liaoheping/OCRonet
 public override void Save(BinaryWriter writer)
 {
     BinIO.magic_write(writer, "dataset");
     BinIO.scalar_write(writer, DatatypeSize);
     BinIO.scalar_write(writer, data.Dim(0));
     BinIO.scalar_write(writer, nc);
     BinIO.scalar_write(writer, nf);
     for (int i = 0; i < data.Dim(0); i++)
     {
         BinIO.narray_write(writer, data[i]);
     }
     BinIO.narray_write(writer, classes);
 }
コード例 #3
0
ファイル: NarrayIOWrapper.cs プロジェクト: liaoheping/OCRonet
 public override void Save(BinaryWriter writer)
 {
     BinIO.narray_write(writer, data);
 }