The Nerv Parameter Package
Part of the Nerv toolkit.
Description
Class hierarchy
There is a base class Nerv.Param defined in layer/init.lua
.
Class hierarchy and their members
- nerv.MatrixParam inherits nerv.Param
Matrix trans
stores the parameter matrix.
- nerv.LinearTransParam inherits Nerv.MatrixParam.
- Nerv.BiasParam inherits Nerv.MatrixParam.
Methods
- void Param.__init(Param self, string id, table global_conf)
Constructor of a Param, it will setself.id
to beid
andself.gconf
to beglobal_conf
. - void Param.set_info(Param self, table info)
Setself.info
to beinfo
. - table Param.get_info(Param self)
Returnsself.info
. - void Param.read(Param self, ChunkData pcdata)
Abstract method.
In this method,self
should in turn calls its members to load frompcdata
. - void Param.write(Param self, ChunkFileHandle pfhandle)
Abstract method.
Save parameters to file. In this method,self
should in turn calls its members to save topfhandle
.