Tools

Packing

Tools which ease the the weights (de)serialization.

Fed.Serde.unpackFunction
unpack(bytes)

Utility function to deserialize bytes into its original representation.

source

Quantizer

Tools to (de)quantize a vector of values.

Fed.Serde.QuantizerType
Quantizer{T <: Unsigned}

Apply value quantization by scaling it down from one type to another, which requires less bits than the original type.

source
Fed.Serde.QuantizerMethod
Quantizer{T}(minval, maxval)

Create a new Quantizer which can quantize values from the range [minval, maxval].

source

Delta compressor

Expose a generic diff and patch mechanism to remove redundant elements from a Vector.

Fed.Serde.PatchType
Patch{T <: Any}

Data structure which contains the diff between two Vector. The second Vector can then be rebuilt by patching the first one with the Patch.

source
Fed.Serde.diffFunction
diff(old::Vector{T}, new::Vector{T}, sizeof_T::Int)

Generate a Patch by delta compressing the difference between old and new.

source