def size(tensor):
    """
    returns maximum of each dynamic dim
    """
    dims = ops.size()(tensor)
    dims = [dim._attrs["int_var"]._attrs["values"][-1] for dim in dims]
    return dims
returns maximum of each dynamic dim
examples/08_esrgan/modeling/rrdbnet.py