Documentation ¶
Index ¶
Constants ¶
View Source
const ModelWeightChunkSize = 64 * units.KB
Variables ¶
This section is empty.
Functions ¶
func OpenModel ¶
func OpenModel(url string) (io.ReadCloser, error)
OpenModel opens the model for reading.
func ReadModelWeights ¶
func ReadModelWeights(recv func() (*aggregatorpb.ModelWeightChunk, error)) *io.PipeReader
Types ¶
type ModelWeightsWriter ¶
type ModelWeightsWriter struct {
// contains filtered or unexported fields
}
ModelWeightsWriter writes ModelWeightChunks.
func NewModelWeightsWriter ¶
func NewModelWeightsWriter(send func(aggregatorpb.ModelWeightChunk) error) *ModelWeightsWriter
func (*ModelWeightsWriter) Close ¶
func (w *ModelWeightsWriter) Close() error
Click to show internal directories.
Click to hide internal directories.