packagingΒΆ

A collection of methods for packaging and unpackaging varaibles into a single tensor.

Functions

pack

Packs the list of input tensors into a single TensorFlow tensor.

package_complex

Takes the last axis of a real tensor and takes the first entry as the real part and the second as the imaginary.

unpack

Unpacks an input iterable x into TensorFlow tensors of the given shapes.

unpackage_complex

Takes a complex tensor and splits it into the real and imaginary parts as the final axis.

Classes

ViewPop

A class that allows for a view of an iterable to be popped.