prune_empty#

ivy.prune_empty(nest)[source]#

Prune empty nests from a nest.

Parameters:

nest – nest to prune.

Returns:

pruned nest with all empty nests removed