Documentation
¶
Index ¶
- Constants
- Variables
- func RegisterCoordinatorServer(s grpc.ServiceRegistrar, srv CoordinatorServer)
- func RegisterDistributedServiceServer(s grpc.ServiceRegistrar, srv DistributedServiceServer)
- type AllReduceRequest
- func (*AllReduceRequest) Descriptor() ([]byte, []int)deprecated
- func (x *AllReduceRequest) GetName() string
- func (x *AllReduceRequest) GetTensor() *Tensor
- func (*AllReduceRequest) ProtoMessage()
- func (x *AllReduceRequest) ProtoReflect() protoreflect.Message
- func (x *AllReduceRequest) Reset()
- func (x *AllReduceRequest) String() string
- type AllReduceResponse
- func (*AllReduceResponse) Descriptor() ([]byte, []int)deprecated
- func (x *AllReduceResponse) GetName() string
- func (x *AllReduceResponse) GetTensor() *Tensor
- func (*AllReduceResponse) ProtoMessage()
- func (x *AllReduceResponse) ProtoReflect() protoreflect.Message
- func (x *AllReduceResponse) Reset()
- func (x *AllReduceResponse) String() string
- type BarrierRequest
- type BarrierResponse
- type BroadcastRequest
- func (*BroadcastRequest) Descriptor() ([]byte, []int)deprecated
- func (x *BroadcastRequest) GetName() string
- func (x *BroadcastRequest) GetTensor() *Tensor
- func (*BroadcastRequest) ProtoMessage()
- func (x *BroadcastRequest) ProtoReflect() protoreflect.Message
- func (x *BroadcastRequest) Reset()
- func (x *BroadcastRequest) String() string
- type BroadcastResponse
- type CoordinatorClient
- type CoordinatorServer
- type DistributedServiceClient
- type DistributedServiceServer
- type DistributedService_AllReduceClient
- type DistributedService_AllReduceServer
- type EndCheckpointRequest
- func (*EndCheckpointRequest) Descriptor() ([]byte, []int)deprecated
- func (x *EndCheckpointRequest) GetCheckpointId() string
- func (x *EndCheckpointRequest) GetEpoch() int64
- func (x *EndCheckpointRequest) GetWorkerId() string
- func (*EndCheckpointRequest) ProtoMessage()
- func (x *EndCheckpointRequest) ProtoReflect() protoreflect.Message
- func (x *EndCheckpointRequest) Reset()
- func (x *EndCheckpointRequest) String() string
- type EndCheckpointResponse
- type HeartbeatRequest
- type HeartbeatResponse
- type RegisterWorkerRequest
- func (*RegisterWorkerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterWorkerRequest) GetAddress() string
- func (x *RegisterWorkerRequest) GetWorkerId() string
- func (*RegisterWorkerRequest) ProtoMessage()
- func (x *RegisterWorkerRequest) ProtoReflect() protoreflect.Message
- func (x *RegisterWorkerRequest) Reset()
- func (x *RegisterWorkerRequest) String() string
- type RegisterWorkerResponse
- func (*RegisterWorkerResponse) Descriptor() ([]byte, []int)deprecated
- func (x *RegisterWorkerResponse) GetPeers() []string
- func (x *RegisterWorkerResponse) GetRank() int32
- func (*RegisterWorkerResponse) ProtoMessage()
- func (x *RegisterWorkerResponse) ProtoReflect() protoreflect.Message
- func (x *RegisterWorkerResponse) Reset()
- func (x *RegisterWorkerResponse) String() string
- type StartCheckpointRequest
- func (*StartCheckpointRequest) Descriptor() ([]byte, []int)deprecated
- func (x *StartCheckpointRequest) GetEpoch() int64
- func (x *StartCheckpointRequest) GetPath() string
- func (*StartCheckpointRequest) ProtoMessage()
- func (x *StartCheckpointRequest) ProtoReflect() protoreflect.Message
- func (x *StartCheckpointRequest) Reset()
- func (x *StartCheckpointRequest) String() string
- type StartCheckpointResponse
- func (*StartCheckpointResponse) Descriptor() ([]byte, []int)deprecated
- func (x *StartCheckpointResponse) GetCheckpointId() string
- func (*StartCheckpointResponse) ProtoMessage()
- func (x *StartCheckpointResponse) ProtoReflect() protoreflect.Message
- func (x *StartCheckpointResponse) Reset()
- func (x *StartCheckpointResponse) String() string
- type Tensor
- type UnimplementedCoordinatorServer
- func (UnimplementedCoordinatorServer) EndCheckpoint(context.Context, *EndCheckpointRequest) (*EndCheckpointResponse, error)
- func (UnimplementedCoordinatorServer) Heartbeat(context.Context, *HeartbeatRequest) (*HeartbeatResponse, error)
- func (UnimplementedCoordinatorServer) RegisterWorker(context.Context, *RegisterWorkerRequest) (*RegisterWorkerResponse, error)
- func (UnimplementedCoordinatorServer) StartCheckpoint(context.Context, *StartCheckpointRequest) (*StartCheckpointResponse, error)
- func (UnimplementedCoordinatorServer) UnregisterWorker(context.Context, *UnregisterWorkerRequest) (*UnregisterWorkerResponse, error)
- type UnimplementedDistributedServiceServer
- func (UnimplementedDistributedServiceServer) AllReduce(grpc.BidiStreamingServer[AllReduceRequest, AllReduceResponse]) error
- func (UnimplementedDistributedServiceServer) Barrier(context.Context, *BarrierRequest) (*BarrierResponse, error)
- func (UnimplementedDistributedServiceServer) Broadcast(context.Context, *BroadcastRequest) (*BroadcastResponse, error)
- type UnregisterWorkerRequest
- func (*UnregisterWorkerRequest) Descriptor() ([]byte, []int)deprecated
- func (x *UnregisterWorkerRequest) GetWorkerId() string
- func (*UnregisterWorkerRequest) ProtoMessage()
- func (x *UnregisterWorkerRequest) ProtoReflect() protoreflect.Message
- func (x *UnregisterWorkerRequest) Reset()
- func (x *UnregisterWorkerRequest) String() string
- type UnregisterWorkerResponse
- type UnsafeCoordinatorServer
- type UnsafeDistributedServiceServer
Constants ¶
const ( Coordinator_RegisterWorker_FullMethodName = "/distributed.Coordinator/RegisterWorker" Coordinator_UnregisterWorker_FullMethodName = "/distributed.Coordinator/UnregisterWorker" Coordinator_Heartbeat_FullMethodName = "/distributed.Coordinator/Heartbeat" Coordinator_StartCheckpoint_FullMethodName = "/distributed.Coordinator/StartCheckpoint" Coordinator_EndCheckpoint_FullMethodName = "/distributed.Coordinator/EndCheckpoint" )
const ( DistributedService_AllReduce_FullMethodName = "/distributed.DistributedService/AllReduce" DistributedService_Barrier_FullMethodName = "/distributed.DistributedService/Barrier" DistributedService_Broadcast_FullMethodName = "/distributed.DistributedService/Broadcast" )
Variables ¶
var Coordinator_ServiceDesc = grpc.ServiceDesc{ ServiceName: "distributed.Coordinator", HandlerType: (*CoordinatorServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RegisterWorker", Handler: _Coordinator_RegisterWorker_Handler, }, { MethodName: "UnregisterWorker", Handler: _Coordinator_UnregisterWorker_Handler, }, { MethodName: "Heartbeat", Handler: _Coordinator_Heartbeat_Handler, }, { MethodName: "StartCheckpoint", Handler: _Coordinator_StartCheckpoint_Handler, }, { MethodName: "EndCheckpoint", Handler: _Coordinator_EndCheckpoint_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "distributed/pb/coordinator.proto", }
Coordinator_ServiceDesc is the grpc.ServiceDesc for Coordinator service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var DistributedService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "distributed.DistributedService", HandlerType: (*DistributedServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "Barrier", Handler: _DistributedService_Barrier_Handler, }, { MethodName: "Broadcast", Handler: _DistributedService_Broadcast_Handler, }, }, Streams: []grpc.StreamDesc{ { StreamName: "AllReduce", Handler: _DistributedService_AllReduce_Handler, ServerStreams: true, ClientStreams: true, }, }, Metadata: "distributed/pb/dist.proto", }
DistributedService_ServiceDesc is the grpc.ServiceDesc for DistributedService service. It's only intended for direct use with grpc.RegisterService, and not to be introspected or modified (even as a copy)
var File_distributed_pb_coordinator_proto protoreflect.FileDescriptor
var File_distributed_pb_dist_proto protoreflect.FileDescriptor
Functions ¶
func RegisterCoordinatorServer ¶
func RegisterCoordinatorServer(s grpc.ServiceRegistrar, srv CoordinatorServer)
func RegisterDistributedServiceServer ¶
func RegisterDistributedServiceServer(s grpc.ServiceRegistrar, srv DistributedServiceServer)
Types ¶
type AllReduceRequest ¶
type AllReduceRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Tensor *Tensor `protobuf:"bytes,2,opt,name=tensor,proto3" json:"tensor,omitempty"` // contains filtered or unexported fields }
func (*AllReduceRequest) Descriptor
deprecated
func (*AllReduceRequest) Descriptor() ([]byte, []int)
Deprecated: Use AllReduceRequest.ProtoReflect.Descriptor instead.
func (*AllReduceRequest) GetName ¶
func (x *AllReduceRequest) GetName() string
func (*AllReduceRequest) GetTensor ¶
func (x *AllReduceRequest) GetTensor() *Tensor
func (*AllReduceRequest) ProtoMessage ¶
func (*AllReduceRequest) ProtoMessage()
func (*AllReduceRequest) ProtoReflect ¶
func (x *AllReduceRequest) ProtoReflect() protoreflect.Message
func (*AllReduceRequest) Reset ¶
func (x *AllReduceRequest) Reset()
func (*AllReduceRequest) String ¶
func (x *AllReduceRequest) String() string
type AllReduceResponse ¶
type AllReduceResponse struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Tensor *Tensor `protobuf:"bytes,2,opt,name=tensor,proto3" json:"tensor,omitempty"` // contains filtered or unexported fields }
func (*AllReduceResponse) Descriptor
deprecated
func (*AllReduceResponse) Descriptor() ([]byte, []int)
Deprecated: Use AllReduceResponse.ProtoReflect.Descriptor instead.
func (*AllReduceResponse) GetName ¶
func (x *AllReduceResponse) GetName() string
func (*AllReduceResponse) GetTensor ¶
func (x *AllReduceResponse) GetTensor() *Tensor
func (*AllReduceResponse) ProtoMessage ¶
func (*AllReduceResponse) ProtoMessage()
func (*AllReduceResponse) ProtoReflect ¶
func (x *AllReduceResponse) ProtoReflect() protoreflect.Message
func (*AllReduceResponse) Reset ¶
func (x *AllReduceResponse) Reset()
func (*AllReduceResponse) String ¶
func (x *AllReduceResponse) String() string
type BarrierRequest ¶
type BarrierRequest struct { Rank int32 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"` // contains filtered or unexported fields }
func (*BarrierRequest) Descriptor
deprecated
func (*BarrierRequest) Descriptor() ([]byte, []int)
Deprecated: Use BarrierRequest.ProtoReflect.Descriptor instead.
func (*BarrierRequest) GetRank ¶
func (x *BarrierRequest) GetRank() int32
func (*BarrierRequest) ProtoMessage ¶
func (*BarrierRequest) ProtoMessage()
func (*BarrierRequest) ProtoReflect ¶
func (x *BarrierRequest) ProtoReflect() protoreflect.Message
func (*BarrierRequest) Reset ¶
func (x *BarrierRequest) Reset()
func (*BarrierRequest) String ¶
func (x *BarrierRequest) String() string
type BarrierResponse ¶
type BarrierResponse struct {
// contains filtered or unexported fields
}
func (*BarrierResponse) Descriptor
deprecated
func (*BarrierResponse) Descriptor() ([]byte, []int)
Deprecated: Use BarrierResponse.ProtoReflect.Descriptor instead.
func (*BarrierResponse) ProtoMessage ¶
func (*BarrierResponse) ProtoMessage()
func (*BarrierResponse) ProtoReflect ¶
func (x *BarrierResponse) ProtoReflect() protoreflect.Message
func (*BarrierResponse) Reset ¶
func (x *BarrierResponse) Reset()
func (*BarrierResponse) String ¶
func (x *BarrierResponse) String() string
type BroadcastRequest ¶
type BroadcastRequest struct { Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` Tensor *Tensor `protobuf:"bytes,2,opt,name=tensor,proto3" json:"tensor,omitempty"` // contains filtered or unexported fields }
func (*BroadcastRequest) Descriptor
deprecated
func (*BroadcastRequest) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastRequest.ProtoReflect.Descriptor instead.
func (*BroadcastRequest) GetName ¶
func (x *BroadcastRequest) GetName() string
func (*BroadcastRequest) GetTensor ¶
func (x *BroadcastRequest) GetTensor() *Tensor
func (*BroadcastRequest) ProtoMessage ¶
func (*BroadcastRequest) ProtoMessage()
func (*BroadcastRequest) ProtoReflect ¶
func (x *BroadcastRequest) ProtoReflect() protoreflect.Message
func (*BroadcastRequest) Reset ¶
func (x *BroadcastRequest) Reset()
func (*BroadcastRequest) String ¶
func (x *BroadcastRequest) String() string
type BroadcastResponse ¶
type BroadcastResponse struct { Tensor *Tensor `protobuf:"bytes,1,opt,name=tensor,proto3" json:"tensor,omitempty"` // contains filtered or unexported fields }
func (*BroadcastResponse) Descriptor
deprecated
func (*BroadcastResponse) Descriptor() ([]byte, []int)
Deprecated: Use BroadcastResponse.ProtoReflect.Descriptor instead.
func (*BroadcastResponse) GetTensor ¶
func (x *BroadcastResponse) GetTensor() *Tensor
func (*BroadcastResponse) ProtoMessage ¶
func (*BroadcastResponse) ProtoMessage()
func (*BroadcastResponse) ProtoReflect ¶
func (x *BroadcastResponse) ProtoReflect() protoreflect.Message
func (*BroadcastResponse) Reset ¶
func (x *BroadcastResponse) Reset()
func (*BroadcastResponse) String ¶
func (x *BroadcastResponse) String() string
type CoordinatorClient ¶
type CoordinatorClient interface { // RegisterWorker allows a worker to join the cluster. RegisterWorker(ctx context.Context, in *RegisterWorkerRequest, opts ...grpc.CallOption) (*RegisterWorkerResponse, error) // UnregisterWorker allows a worker to leave the cluster. UnregisterWorker(ctx context.Context, in *UnregisterWorkerRequest, opts ...grpc.CallOption) (*UnregisterWorkerResponse, error) // Heartbeat is sent by workers to indicate that they are still alive. Heartbeat(ctx context.Context, in *HeartbeatRequest, opts ...grpc.CallOption) (*HeartbeatResponse, error) // StartCheckpoint initiates a distributed checkpoint. StartCheckpoint(ctx context.Context, in *StartCheckpointRequest, opts ...grpc.CallOption) (*StartCheckpointResponse, error) // EndCheckpoint is called by workers to report the completion of a checkpoint. EndCheckpoint(ctx context.Context, in *EndCheckpointRequest, opts ...grpc.CallOption) (*EndCheckpointResponse, error) }
CoordinatorClient is the client API for Coordinator service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewCoordinatorClient ¶
func NewCoordinatorClient(cc grpc.ClientConnInterface) CoordinatorClient
type CoordinatorServer ¶
type CoordinatorServer interface { // RegisterWorker allows a worker to join the cluster. RegisterWorker(context.Context, *RegisterWorkerRequest) (*RegisterWorkerResponse, error) // UnregisterWorker allows a worker to leave the cluster. UnregisterWorker(context.Context, *UnregisterWorkerRequest) (*UnregisterWorkerResponse, error) // Heartbeat is sent by workers to indicate that they are still alive. Heartbeat(context.Context, *HeartbeatRequest) (*HeartbeatResponse, error) // StartCheckpoint initiates a distributed checkpoint. StartCheckpoint(context.Context, *StartCheckpointRequest) (*StartCheckpointResponse, error) // EndCheckpoint is called by workers to report the completion of a checkpoint. EndCheckpoint(context.Context, *EndCheckpointRequest) (*EndCheckpointResponse, error) // contains filtered or unexported methods }
CoordinatorServer is the server API for Coordinator service. All implementations must embed UnimplementedCoordinatorServer for forward compatibility.
type DistributedServiceClient ¶
type DistributedServiceClient interface { // AllReduce performs a single all-reduce operation on a tensor. AllReduce(ctx context.Context, opts ...grpc.CallOption) (grpc.BidiStreamingClient[AllReduceRequest, AllReduceResponse], error) // Barrier provides a synchronization point for all workers. Barrier(ctx context.Context, in *BarrierRequest, opts ...grpc.CallOption) (*BarrierResponse, error) // Broadcast sends a tensor from the root to all other workers. Broadcast(ctx context.Context, in *BroadcastRequest, opts ...grpc.CallOption) (*BroadcastResponse, error) }
DistributedServiceClient is the client API for DistributedService service.
For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream.
func NewDistributedServiceClient ¶
func NewDistributedServiceClient(cc grpc.ClientConnInterface) DistributedServiceClient
type DistributedServiceServer ¶
type DistributedServiceServer interface { // AllReduce performs a single all-reduce operation on a tensor. AllReduce(grpc.BidiStreamingServer[AllReduceRequest, AllReduceResponse]) error // Barrier provides a synchronization point for all workers. Barrier(context.Context, *BarrierRequest) (*BarrierResponse, error) // Broadcast sends a tensor from the root to all other workers. Broadcast(context.Context, *BroadcastRequest) (*BroadcastResponse, error) // contains filtered or unexported methods }
DistributedServiceServer is the server API for DistributedService service. All implementations must embed UnimplementedDistributedServiceServer for forward compatibility.
type DistributedService_AllReduceClient ¶
type DistributedService_AllReduceClient = grpc.BidiStreamingClient[AllReduceRequest, AllReduceResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type DistributedService_AllReduceServer ¶
type DistributedService_AllReduceServer = grpc.BidiStreamingServer[AllReduceRequest, AllReduceResponse]
This type alias is provided for backwards compatibility with existing code that references the prior non-generic stream type by name.
type EndCheckpointRequest ¶
type EndCheckpointRequest struct { WorkerId string `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"` Epoch int64 `protobuf:"varint,2,opt,name=epoch,proto3" json:"epoch,omitempty"` CheckpointId string `protobuf:"bytes,3,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"` // contains filtered or unexported fields }
func (*EndCheckpointRequest) Descriptor
deprecated
func (*EndCheckpointRequest) Descriptor() ([]byte, []int)
Deprecated: Use EndCheckpointRequest.ProtoReflect.Descriptor instead.
func (*EndCheckpointRequest) GetCheckpointId ¶
func (x *EndCheckpointRequest) GetCheckpointId() string
func (*EndCheckpointRequest) GetEpoch ¶
func (x *EndCheckpointRequest) GetEpoch() int64
func (*EndCheckpointRequest) GetWorkerId ¶
func (x *EndCheckpointRequest) GetWorkerId() string
func (*EndCheckpointRequest) ProtoMessage ¶
func (*EndCheckpointRequest) ProtoMessage()
func (*EndCheckpointRequest) ProtoReflect ¶
func (x *EndCheckpointRequest) ProtoReflect() protoreflect.Message
func (*EndCheckpointRequest) Reset ¶
func (x *EndCheckpointRequest) Reset()
func (*EndCheckpointRequest) String ¶
func (x *EndCheckpointRequest) String() string
type EndCheckpointResponse ¶
type EndCheckpointResponse struct {
// contains filtered or unexported fields
}
func (*EndCheckpointResponse) Descriptor
deprecated
func (*EndCheckpointResponse) Descriptor() ([]byte, []int)
Deprecated: Use EndCheckpointResponse.ProtoReflect.Descriptor instead.
func (*EndCheckpointResponse) ProtoMessage ¶
func (*EndCheckpointResponse) ProtoMessage()
func (*EndCheckpointResponse) ProtoReflect ¶
func (x *EndCheckpointResponse) ProtoReflect() protoreflect.Message
func (*EndCheckpointResponse) Reset ¶
func (x *EndCheckpointResponse) Reset()
func (*EndCheckpointResponse) String ¶
func (x *EndCheckpointResponse) String() string
type HeartbeatRequest ¶
type HeartbeatRequest struct { WorkerId string `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"` // contains filtered or unexported fields }
func (*HeartbeatRequest) Descriptor
deprecated
func (*HeartbeatRequest) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatRequest.ProtoReflect.Descriptor instead.
func (*HeartbeatRequest) GetWorkerId ¶
func (x *HeartbeatRequest) GetWorkerId() string
func (*HeartbeatRequest) ProtoMessage ¶
func (*HeartbeatRequest) ProtoMessage()
func (*HeartbeatRequest) ProtoReflect ¶
func (x *HeartbeatRequest) ProtoReflect() protoreflect.Message
func (*HeartbeatRequest) Reset ¶
func (x *HeartbeatRequest) Reset()
func (*HeartbeatRequest) String ¶
func (x *HeartbeatRequest) String() string
type HeartbeatResponse ¶
type HeartbeatResponse struct { Status string `protobuf:"bytes,1,opt,name=status,proto3" json:"status,omitempty"` // contains filtered or unexported fields }
func (*HeartbeatResponse) Descriptor
deprecated
func (*HeartbeatResponse) Descriptor() ([]byte, []int)
Deprecated: Use HeartbeatResponse.ProtoReflect.Descriptor instead.
func (*HeartbeatResponse) GetStatus ¶
func (x *HeartbeatResponse) GetStatus() string
func (*HeartbeatResponse) ProtoMessage ¶
func (*HeartbeatResponse) ProtoMessage()
func (*HeartbeatResponse) ProtoReflect ¶
func (x *HeartbeatResponse) ProtoReflect() protoreflect.Message
func (*HeartbeatResponse) Reset ¶
func (x *HeartbeatResponse) Reset()
func (*HeartbeatResponse) String ¶
func (x *HeartbeatResponse) String() string
type RegisterWorkerRequest ¶
type RegisterWorkerRequest struct { WorkerId string `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"` Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"` // contains filtered or unexported fields }
func (*RegisterWorkerRequest) Descriptor
deprecated
func (*RegisterWorkerRequest) Descriptor() ([]byte, []int)
Deprecated: Use RegisterWorkerRequest.ProtoReflect.Descriptor instead.
func (*RegisterWorkerRequest) GetAddress ¶
func (x *RegisterWorkerRequest) GetAddress() string
func (*RegisterWorkerRequest) GetWorkerId ¶
func (x *RegisterWorkerRequest) GetWorkerId() string
func (*RegisterWorkerRequest) ProtoMessage ¶
func (*RegisterWorkerRequest) ProtoMessage()
func (*RegisterWorkerRequest) ProtoReflect ¶
func (x *RegisterWorkerRequest) ProtoReflect() protoreflect.Message
func (*RegisterWorkerRequest) Reset ¶
func (x *RegisterWorkerRequest) Reset()
func (*RegisterWorkerRequest) String ¶
func (x *RegisterWorkerRequest) String() string
type RegisterWorkerResponse ¶
type RegisterWorkerResponse struct { Rank int32 `protobuf:"varint,1,opt,name=rank,proto3" json:"rank,omitempty"` Peers []string `protobuf:"bytes,2,rep,name=peers,proto3" json:"peers,omitempty"` // contains filtered or unexported fields }
func (*RegisterWorkerResponse) Descriptor
deprecated
func (*RegisterWorkerResponse) Descriptor() ([]byte, []int)
Deprecated: Use RegisterWorkerResponse.ProtoReflect.Descriptor instead.
func (*RegisterWorkerResponse) GetPeers ¶
func (x *RegisterWorkerResponse) GetPeers() []string
func (*RegisterWorkerResponse) GetRank ¶
func (x *RegisterWorkerResponse) GetRank() int32
func (*RegisterWorkerResponse) ProtoMessage ¶
func (*RegisterWorkerResponse) ProtoMessage()
func (*RegisterWorkerResponse) ProtoReflect ¶
func (x *RegisterWorkerResponse) ProtoReflect() protoreflect.Message
func (*RegisterWorkerResponse) Reset ¶
func (x *RegisterWorkerResponse) Reset()
func (*RegisterWorkerResponse) String ¶
func (x *RegisterWorkerResponse) String() string
type StartCheckpointRequest ¶
type StartCheckpointRequest struct { Epoch int64 `protobuf:"varint,1,opt,name=epoch,proto3" json:"epoch,omitempty"` Path string `protobuf:"bytes,2,opt,name=path,proto3" json:"path,omitempty"` // contains filtered or unexported fields }
func (*StartCheckpointRequest) Descriptor
deprecated
func (*StartCheckpointRequest) Descriptor() ([]byte, []int)
Deprecated: Use StartCheckpointRequest.ProtoReflect.Descriptor instead.
func (*StartCheckpointRequest) GetEpoch ¶
func (x *StartCheckpointRequest) GetEpoch() int64
func (*StartCheckpointRequest) GetPath ¶
func (x *StartCheckpointRequest) GetPath() string
func (*StartCheckpointRequest) ProtoMessage ¶
func (*StartCheckpointRequest) ProtoMessage()
func (*StartCheckpointRequest) ProtoReflect ¶
func (x *StartCheckpointRequest) ProtoReflect() protoreflect.Message
func (*StartCheckpointRequest) Reset ¶
func (x *StartCheckpointRequest) Reset()
func (*StartCheckpointRequest) String ¶
func (x *StartCheckpointRequest) String() string
type StartCheckpointResponse ¶
type StartCheckpointResponse struct { CheckpointId string `protobuf:"bytes,1,opt,name=checkpoint_id,json=checkpointId,proto3" json:"checkpoint_id,omitempty"` // contains filtered or unexported fields }
func (*StartCheckpointResponse) Descriptor
deprecated
func (*StartCheckpointResponse) Descriptor() ([]byte, []int)
Deprecated: Use StartCheckpointResponse.ProtoReflect.Descriptor instead.
func (*StartCheckpointResponse) GetCheckpointId ¶
func (x *StartCheckpointResponse) GetCheckpointId() string
func (*StartCheckpointResponse) ProtoMessage ¶
func (*StartCheckpointResponse) ProtoMessage()
func (*StartCheckpointResponse) ProtoReflect ¶
func (x *StartCheckpointResponse) ProtoReflect() protoreflect.Message
func (*StartCheckpointResponse) Reset ¶
func (x *StartCheckpointResponse) Reset()
func (*StartCheckpointResponse) String ¶
func (x *StartCheckpointResponse) String() string
type Tensor ¶
type Tensor struct { Shape []int32 `protobuf:"varint,1,rep,packed,name=shape,proto3" json:"shape,omitempty"` Data []float32 `protobuf:"fixed32,2,rep,packed,name=data,proto3" json:"data,omitempty"` // Using float32 for simplicity of transport // contains filtered or unexported fields }
func (*Tensor) Descriptor
deprecated
func (*Tensor) ProtoMessage ¶
func (*Tensor) ProtoMessage()
func (*Tensor) ProtoReflect ¶
func (x *Tensor) ProtoReflect() protoreflect.Message
type UnimplementedCoordinatorServer ¶
type UnimplementedCoordinatorServer struct{}
UnimplementedCoordinatorServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedCoordinatorServer) EndCheckpoint ¶
func (UnimplementedCoordinatorServer) EndCheckpoint(context.Context, *EndCheckpointRequest) (*EndCheckpointResponse, error)
func (UnimplementedCoordinatorServer) Heartbeat ¶
func (UnimplementedCoordinatorServer) Heartbeat(context.Context, *HeartbeatRequest) (*HeartbeatResponse, error)
func (UnimplementedCoordinatorServer) RegisterWorker ¶
func (UnimplementedCoordinatorServer) RegisterWorker(context.Context, *RegisterWorkerRequest) (*RegisterWorkerResponse, error)
func (UnimplementedCoordinatorServer) StartCheckpoint ¶
func (UnimplementedCoordinatorServer) StartCheckpoint(context.Context, *StartCheckpointRequest) (*StartCheckpointResponse, error)
func (UnimplementedCoordinatorServer) UnregisterWorker ¶
func (UnimplementedCoordinatorServer) UnregisterWorker(context.Context, *UnregisterWorkerRequest) (*UnregisterWorkerResponse, error)
type UnimplementedDistributedServiceServer ¶
type UnimplementedDistributedServiceServer struct{}
UnimplementedDistributedServiceServer must be embedded to have forward compatible implementations.
NOTE: this should be embedded by value instead of pointer to avoid a nil pointer dereference when methods are called.
func (UnimplementedDistributedServiceServer) AllReduce ¶
func (UnimplementedDistributedServiceServer) AllReduce(grpc.BidiStreamingServer[AllReduceRequest, AllReduceResponse]) error
func (UnimplementedDistributedServiceServer) Barrier ¶
func (UnimplementedDistributedServiceServer) Barrier(context.Context, *BarrierRequest) (*BarrierResponse, error)
func (UnimplementedDistributedServiceServer) Broadcast ¶
func (UnimplementedDistributedServiceServer) Broadcast(context.Context, *BroadcastRequest) (*BroadcastResponse, error)
type UnregisterWorkerRequest ¶
type UnregisterWorkerRequest struct { WorkerId string `protobuf:"bytes,1,opt,name=worker_id,json=workerId,proto3" json:"worker_id,omitempty"` // contains filtered or unexported fields }
func (*UnregisterWorkerRequest) Descriptor
deprecated
func (*UnregisterWorkerRequest) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterWorkerRequest.ProtoReflect.Descriptor instead.
func (*UnregisterWorkerRequest) GetWorkerId ¶
func (x *UnregisterWorkerRequest) GetWorkerId() string
func (*UnregisterWorkerRequest) ProtoMessage ¶
func (*UnregisterWorkerRequest) ProtoMessage()
func (*UnregisterWorkerRequest) ProtoReflect ¶
func (x *UnregisterWorkerRequest) ProtoReflect() protoreflect.Message
func (*UnregisterWorkerRequest) Reset ¶
func (x *UnregisterWorkerRequest) Reset()
func (*UnregisterWorkerRequest) String ¶
func (x *UnregisterWorkerRequest) String() string
type UnregisterWorkerResponse ¶
type UnregisterWorkerResponse struct {
// contains filtered or unexported fields
}
func (*UnregisterWorkerResponse) Descriptor
deprecated
func (*UnregisterWorkerResponse) Descriptor() ([]byte, []int)
Deprecated: Use UnregisterWorkerResponse.ProtoReflect.Descriptor instead.
func (*UnregisterWorkerResponse) ProtoMessage ¶
func (*UnregisterWorkerResponse) ProtoMessage()
func (*UnregisterWorkerResponse) ProtoReflect ¶
func (x *UnregisterWorkerResponse) ProtoReflect() protoreflect.Message
func (*UnregisterWorkerResponse) Reset ¶
func (x *UnregisterWorkerResponse) Reset()
func (*UnregisterWorkerResponse) String ¶
func (x *UnregisterWorkerResponse) String() string
type UnsafeCoordinatorServer ¶
type UnsafeCoordinatorServer interface {
// contains filtered or unexported methods
}
UnsafeCoordinatorServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to CoordinatorServer will result in compilation errors.
type UnsafeDistributedServiceServer ¶
type UnsafeDistributedServiceServer interface {
// contains filtered or unexported methods
}
UnsafeDistributedServiceServer may be embedded to opt out of forward compatibility for this service. Use of this interface is not recommended, as added methods to DistributedServiceServer will result in compilation errors.