pb

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 9, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_model_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Dense

type Dense struct {
	Rows int32     `protobuf:"varint,1,opt,name=rows,proto3" json:"rows,omitempty"`
	Cols int32     `protobuf:"varint,2,opt,name=cols,proto3" json:"cols,omitempty"`
	Data []float64 `protobuf:"fixed64,3,rep,packed,name=data,proto3" json:"data,omitempty"`
	// contains filtered or unexported fields
}

func (*Dense) Descriptor deprecated

func (*Dense) Descriptor() ([]byte, []int)

Deprecated: Use Dense.ProtoReflect.Descriptor instead.

func (*Dense) GetCols

func (x *Dense) GetCols() int32

func (*Dense) GetData

func (x *Dense) GetData() []float64

func (*Dense) GetRows

func (x *Dense) GetRows() int32

func (*Dense) ProtoMessage

func (*Dense) ProtoMessage()

func (*Dense) ProtoReflect

func (x *Dense) ProtoReflect() protoreflect.Message

func (*Dense) Reset

func (x *Dense) Reset()

func (*Dense) String

func (x *Dense) String() string

type Layer

type Layer struct {
	Class  string            `protobuf:"bytes,1,opt,name=class,proto3" json:"class,omitempty"`
	Name   string            `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
	Params map[string]*Dense `` /* 153-byte string literal not displayed */
	Args   map[string]*Dense `` /* 149-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Layer) Descriptor deprecated

func (*Layer) Descriptor() ([]byte, []int)

Deprecated: Use Layer.ProtoReflect.Descriptor instead.

func (*Layer) GetArgs

func (x *Layer) GetArgs() map[string]*Dense

func (*Layer) GetClass

func (x *Layer) GetClass() string

func (*Layer) GetName

func (x *Layer) GetName() string

func (*Layer) GetParams

func (x *Layer) GetParams() map[string]*Dense

func (*Layer) ProtoMessage

func (*Layer) ProtoMessage()

func (*Layer) ProtoReflect

func (x *Layer) ProtoReflect() protoreflect.Message

func (*Layer) Reset

func (x *Layer) Reset()

func (*Layer) String

func (x *Layer) String() string

type Loss

type Loss struct {
	Name   string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Params map[string]float64 `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Loss) Descriptor deprecated

func (*Loss) Descriptor() ([]byte, []int)

Deprecated: Use Loss.ProtoReflect.Descriptor instead.

func (*Loss) GetName

func (x *Loss) GetName() string

func (*Loss) GetParams

func (x *Loss) GetParams() map[string]float64

func (*Loss) ProtoMessage

func (*Loss) ProtoMessage()

func (*Loss) ProtoReflect

func (x *Loss) ProtoReflect() protoreflect.Message

func (*Loss) Reset

func (x *Loss) Reset()

func (*Loss) String

func (x *Loss) String() string

type Model

type Model struct {
	Name       string     `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	TrainCount uint64     `protobuf:"varint,2,opt,name=train_count,json=trainCount,proto3" json:"train_count,omitempty"`
	ParamCount uint64     `protobuf:"varint,3,opt,name=param_count,json=paramCount,proto3" json:"param_count,omitempty"`
	Layers     []*Layer   `protobuf:"bytes,4,rep,name=layers,proto3" json:"layers,omitempty"`
	Loss       *Loss      `protobuf:"bytes,5,opt,name=loss,proto3" json:"loss,omitempty"`
	Optimizer  *Optimizer `protobuf:"bytes,6,opt,name=optimizer,proto3" json:"optimizer,omitempty"`
	// contains filtered or unexported fields
}

func (*Model) Descriptor deprecated

func (*Model) Descriptor() ([]byte, []int)

Deprecated: Use Model.ProtoReflect.Descriptor instead.

func (*Model) GetLayers

func (x *Model) GetLayers() []*Layer

func (*Model) GetLoss

func (x *Model) GetLoss() *Loss

func (*Model) GetName

func (x *Model) GetName() string

func (*Model) GetOptimizer

func (x *Model) GetOptimizer() *Optimizer

func (*Model) GetParamCount

func (x *Model) GetParamCount() uint64

func (*Model) GetTrainCount

func (x *Model) GetTrainCount() uint64

func (*Model) ProtoMessage

func (*Model) ProtoMessage()

func (*Model) ProtoReflect

func (x *Model) ProtoReflect() protoreflect.Message

func (*Model) Reset

func (x *Model) Reset()

func (*Model) String

func (x *Model) String() string

type Optimizer

type Optimizer struct {
	Name        string             `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Lr          float64            `protobuf:"fixed64,2,opt,name=lr,proto3" json:"lr,omitempty"`
	WeightDecay float64            `protobuf:"fixed64,3,opt,name=weight_decay,json=weightDecay,proto3" json:"weight_decay,omitempty"`
	Params      map[string]float64 `` /* 155-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Optimizer) Descriptor deprecated

func (*Optimizer) Descriptor() ([]byte, []int)

Deprecated: Use Optimizer.ProtoReflect.Descriptor instead.

func (*Optimizer) GetLr

func (x *Optimizer) GetLr() float64

func (*Optimizer) GetName

func (x *Optimizer) GetName() string

func (*Optimizer) GetParams

func (x *Optimizer) GetParams() map[string]float64

func (*Optimizer) GetWeightDecay

func (x *Optimizer) GetWeightDecay() float64

func (*Optimizer) ProtoMessage

func (*Optimizer) ProtoMessage()

func (*Optimizer) ProtoReflect

func (x *Optimizer) ProtoReflect() protoreflect.Message

func (*Optimizer) Reset

func (x *Optimizer) Reset()

func (*Optimizer) String

func (x *Optimizer) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL