Documentation
¶
Index ¶
- func RegisterLoadFunc(class string, fn loadFunc)
- type Net
- func (n *Net) Add(layers ...layer.Layer)
- func (n *Net) Clear()
- func (n *Net) GetOptimizer() optimizer.Optimizer
- func (n *Net) Layers() []layer.Layer
- func (n *Net) Load(dir string) error
- func (n *Net) ParamCount() uint64
- func (n *Net) Params() []*tensor.Tensor
- func (n *Net) ReadFrom(r io.ReaderAt, size int64) (int64, error)
- func (n *Net) Save(dir string) error
- func (n *Net) SetDevice(device consts.DeviceType)
- func (n *Net) SetOptimizer(optm optimizer.Optimizer)
- func (n *Net) ToScalarType(t consts.ScalarType)
- func (n *Net) WriteTo(w io.Writer) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterLoadFunc ¶ added in v1.0.2
func RegisterLoadFunc(class string, fn loadFunc)
Types ¶
type Net ¶
type Net struct {
// contains filtered or unexported fields
}
func New ¶
func New(device consts.DeviceType) *Net
func (*Net) GetOptimizer ¶ added in v1.0.2
func (*Net) ParamCount ¶
func (*Net) SetDevice ¶ added in v1.0.2
func (n *Net) SetDevice(device consts.DeviceType)
func (*Net) SetOptimizer ¶ added in v1.0.2
func (*Net) ToScalarType ¶ added in v1.0.2
func (n *Net) ToScalarType(t consts.ScalarType)
Click to show internal directories.
Click to hide internal directories.