aboutsummaryrefslogtreecommitdiff

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 set self.id to be id and self.gconf to be global_conf.
  • void Param.set_info(Param self, table info)
    Set self.info to be info.
  • table Param.get_info(Param self)
    Returns self.info.
  • void Param.read(Param self, ChunkData pcdata)
    Abstract method.
    In this method, self should in turn calls its members to load from pcdata.
  • 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 to pfhandle.