r"""Partition a layer composed of sequential layers. This routine strives to partition layers so that each partition costs roughly the same flops given the input shapes. Args: params: A layer param or a list of layer param. num_partitions: The desired number of partitions. *shape
(params, num_partitions, *shapes)
source not stored for this graph (policy: none)
searching dependent graphs…