remotecontrol

package
v0.0.0-...-7591e67 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LayerMatrix_ContentType_name = map[int32]string{
	0: "Activations",
	1: "Weights",
	2: "Biases",
}
View Source
var LayerMatrix_ContentType_value = map[string]int32{
	"Activations": 0,
	"Weights":     1,
	"Biases":      2,
}
View Source
var NetworkState_State_name = map[int32]string{
	0: "None",
	1: "Idle",
	2: "Learning",
	3: "Validation",
	4: "Predict",
}
View Source
var NetworkState_State_value = map[string]int32{
	"None":       0,
	"Idle":       1,
	"Learning":   2,
	"Validation": 3,
	"Predict":    4,
}

Functions

func RegisterRemoteControlServer

func RegisterRemoteControlServer(s *grpc.Server, srv RemoteControlServer)

Types

type Configuration

type Configuration struct {
	Sizes                []int32  `protobuf:"zigzag32,1,rep,packed,name=sizes,proto3" json:"sizes,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Configuration) Descriptor

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

func (*Configuration) GetSizes

func (m *Configuration) GetSizes() []int32

func (*Configuration) ProtoMessage

func (*Configuration) ProtoMessage()

func (*Configuration) Reset

func (m *Configuration) Reset()

func (*Configuration) String

func (m *Configuration) String() string

func (*Configuration) XXX_DiscardUnknown

func (m *Configuration) XXX_DiscardUnknown()

func (*Configuration) XXX_Marshal

func (m *Configuration) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Configuration) XXX_Merge

func (m *Configuration) XXX_Merge(src proto.Message)

func (*Configuration) XXX_Size

func (m *Configuration) XXX_Size() int

func (*Configuration) XXX_Unmarshal

func (m *Configuration) XXX_Unmarshal(b []byte) error

type LayerMatrix

type LayerMatrix struct {
	ContentType          LayerMatrix_ContentType `protobuf:"varint,1,opt,name=contentType,proto3,enum=remotecontrol.LayerMatrix_ContentType" json:"contentType,omitempty"`
	Layer                int32                   `protobuf:"zigzag32,2,opt,name=layer,proto3" json:"layer,omitempty"`
	Matrix               *Matrix                 `protobuf:"bytes,3,opt,name=matrix,proto3" json:"matrix,omitempty"`
	XXX_NoUnkeyedLiteral struct{}                `json:"-"`
	XXX_unrecognized     []byte                  `json:"-"`
	XXX_sizecache        int32                   `json:"-"`
}

func (*LayerMatrix) Descriptor

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

func (*LayerMatrix) GetContentType

func (m *LayerMatrix) GetContentType() LayerMatrix_ContentType

func (*LayerMatrix) GetLayer

func (m *LayerMatrix) GetLayer() int32

func (*LayerMatrix) GetMatrix

func (m *LayerMatrix) GetMatrix() *Matrix

func (*LayerMatrix) ProtoMessage

func (*LayerMatrix) ProtoMessage()

func (*LayerMatrix) Reset

func (m *LayerMatrix) Reset()

func (*LayerMatrix) String

func (m *LayerMatrix) String() string

func (*LayerMatrix) XXX_DiscardUnknown

func (m *LayerMatrix) XXX_DiscardUnknown()

func (*LayerMatrix) XXX_Marshal

func (m *LayerMatrix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*LayerMatrix) XXX_Merge

func (m *LayerMatrix) XXX_Merge(src proto.Message)

func (*LayerMatrix) XXX_Size

func (m *LayerMatrix) XXX_Size() int

func (*LayerMatrix) XXX_Unmarshal

func (m *LayerMatrix) XXX_Unmarshal(b []byte) error

type LayerMatrix_ContentType

type LayerMatrix_ContentType int32
const (
	LayerMatrix_Activations LayerMatrix_ContentType = 0
	LayerMatrix_Weights     LayerMatrix_ContentType = 1
	LayerMatrix_Biases      LayerMatrix_ContentType = 2
)

func (LayerMatrix_ContentType) EnumDescriptor

func (LayerMatrix_ContentType) EnumDescriptor() ([]byte, []int)

func (LayerMatrix_ContentType) String

func (x LayerMatrix_ContentType) String() string

type Matrix

type Matrix struct {
	Matrix               []byte   `protobuf:"bytes,1,opt,name=matrix,proto3" json:"matrix,omitempty"`
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*Matrix) Descriptor

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

func (*Matrix) GetMatrix

func (m *Matrix) GetMatrix() []byte

func (*Matrix) ProtoMessage

func (*Matrix) ProtoMessage()

func (*Matrix) Reset

func (m *Matrix) Reset()

func (*Matrix) String

func (m *Matrix) String() string

func (*Matrix) XXX_DiscardUnknown

func (m *Matrix) XXX_DiscardUnknown()

func (*Matrix) XXX_Marshal

func (m *Matrix) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Matrix) XXX_Merge

func (m *Matrix) XXX_Merge(src proto.Message)

func (*Matrix) XXX_Size

func (m *Matrix) XXX_Size() int

func (*Matrix) XXX_Unmarshal

func (m *Matrix) XXX_Unmarshal(b []byte) error

type NetworkState

type NetworkState struct {
	State                NetworkState_State `protobuf:"varint,1,opt,name=state,proto3,enum=remotecontrol.NetworkState_State" json:"state,omitempty"`
	XXX_NoUnkeyedLiteral struct{}           `json:"-"`
	XXX_unrecognized     []byte             `json:"-"`
	XXX_sizecache        int32              `json:"-"`
}

func (*NetworkState) Descriptor

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

func (*NetworkState) GetState

func (m *NetworkState) GetState() NetworkState_State

func (*NetworkState) ProtoMessage

func (*NetworkState) ProtoMessage()

func (*NetworkState) Reset

func (m *NetworkState) Reset()

func (*NetworkState) String

func (m *NetworkState) String() string

func (*NetworkState) XXX_DiscardUnknown

func (m *NetworkState) XXX_DiscardUnknown()

func (*NetworkState) XXX_Marshal

func (m *NetworkState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*NetworkState) XXX_Merge

func (m *NetworkState) XXX_Merge(src proto.Message)

func (*NetworkState) XXX_Size

func (m *NetworkState) XXX_Size() int

func (*NetworkState) XXX_Unmarshal

func (m *NetworkState) XXX_Unmarshal(b []byte) error

type NetworkState_State

type NetworkState_State int32
const (
	NetworkState_None       NetworkState_State = 0
	NetworkState_Idle       NetworkState_State = 1
	NetworkState_Learning   NetworkState_State = 2
	NetworkState_Validation NetworkState_State = 3
	NetworkState_Predict    NetworkState_State = 4
)

func (NetworkState_State) EnumDescriptor

func (NetworkState_State) EnumDescriptor() ([]byte, []int)

func (NetworkState_State) String

func (x NetworkState_State) String() string

type None

type None struct {
	XXX_NoUnkeyedLiteral struct{} `json:"-"`
	XXX_unrecognized     []byte   `json:"-"`
	XXX_sizecache        int32    `json:"-"`
}

func (*None) Descriptor

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

func (*None) ProtoMessage

func (*None) ProtoMessage()

func (*None) Reset

func (m *None) Reset()

func (*None) String

func (m *None) String() string

func (*None) XXX_DiscardUnknown

func (m *None) XXX_DiscardUnknown()

func (*None) XXX_Marshal

func (m *None) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*None) XXX_Merge

func (m *None) XXX_Merge(src proto.Message)

func (*None) XXX_Size

func (m *None) XXX_Size() int

func (*None) XXX_Unmarshal

func (m *None) XXX_Unmarshal(b []byte) error

type RemoteControlClient

type RemoteControlClient interface {
	GetConfiguration(ctx context.Context, in *None, opts ...grpc.CallOption) (*Configuration, error)
	Activations(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_ActivationsClient, error)
	Biases(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_BiasesClient, error)
	Weights(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_WeightsClient, error)
	State(ctx context.Context, in *None, opts ...grpc.CallOption) (RemoteControl_StateClient, error)
}

RemoteControlClient is the client API for RemoteControl service.

For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.

type RemoteControlServer

type RemoteControlServer interface {
	GetConfiguration(context.Context, *None) (*Configuration, error)
	Activations(*None, RemoteControl_ActivationsServer) error
	Biases(*None, RemoteControl_BiasesServer) error
	Weights(*None, RemoteControl_WeightsServer) error
	State(*None, RemoteControl_StateServer) error
}

RemoteControlServer is the server API for RemoteControl service.

type RemoteControl_ActivationsClient

type RemoteControl_ActivationsClient interface {
	Recv() (*LayerMatrix, error)
	grpc.ClientStream
}

type RemoteControl_ActivationsServer

type RemoteControl_ActivationsServer interface {
	Send(*LayerMatrix) error
	grpc.ServerStream
}

type RemoteControl_BiasesClient

type RemoteControl_BiasesClient interface {
	Recv() (*LayerMatrix, error)
	grpc.ClientStream
}

type RemoteControl_BiasesServer

type RemoteControl_BiasesServer interface {
	Send(*LayerMatrix) error
	grpc.ServerStream
}

type RemoteControl_StateClient

type RemoteControl_StateClient interface {
	Recv() (*NetworkState, error)
	grpc.ClientStream
}

type RemoteControl_StateServer

type RemoteControl_StateServer interface {
	Send(*NetworkState) error
	grpc.ServerStream
}

type RemoteControl_WeightsClient

type RemoteControl_WeightsClient interface {
	Recv() (*LayerMatrix, error)
	grpc.ClientStream
}

type RemoteControl_WeightsServer

type RemoteControl_WeightsServer interface {
	Send(*LayerMatrix) error
	grpc.ServerStream
}

type UnimplementedRemoteControlServer

type UnimplementedRemoteControlServer struct {
}

UnimplementedRemoteControlServer can be embedded to have forward compatible implementations.

func (*UnimplementedRemoteControlServer) Activations

func (*UnimplementedRemoteControlServer) Biases

func (*UnimplementedRemoteControlServer) GetConfiguration

func (*UnimplementedRemoteControlServer) GetConfiguration(ctx context.Context, req *None) (*Configuration, error)

func (*UnimplementedRemoteControlServer) State

func (*UnimplementedRemoteControlServer) Weights

Jump to

Keyboard shortcuts

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