convert_len

paddle.fluid.dygraph.dygraph_to_static.convert_operators. convert_len ( var ) [source]

Returns variable(length) from shape ops based on var.type

Note: In addition to some ast transformations, some block-related

operations are added in len transformation, such as appending shape_op in var.block.