net

package
v0.0.0-...-d9bce91 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2018 License: MIT Imports: 5 Imported by: 0

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

func (*ModelWeightsWriter) Write

func (w *ModelWeightsWriter) Write(b []byte) (int, error)

Jump to

Keyboard shortcuts

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