// save the model to file inline void SaveModel(utils::IStream &fo) const { // NOLINT(*) fo.Write(¶m, sizeof(Param)); fo.Write(weight); }
virtual void SaveModel(utils::IStream &fo) const { fo.Write(¶m_, sizeof(LayerParam)); wmat_.SaveBinary(fo); bias_.SaveBinary(fo); }