Example #1
0
 // save the model to file
 inline void SaveModel(utils::IStream &fo) const { // NOLINT(*)
   fo.Write(&param, sizeof(Param));
   fo.Write(weight);
 }
Example #2
0
 virtual void SaveModel(utils::IStream &fo) const {
   fo.Write(&param_, sizeof(LayerParam));
   wmat_.SaveBinary(fo);
   bias_.SaveBinary(fo);
 }