Ejemplo n.º 1
0
def plot_resnet34_structured_B_epoch_for_epoch_core():
    common.epoch_for_epoch_plot(network=common.RESNET34,
                                is_iterative=False,
                                prune_method=common.STRUCTURED_B,
                                nbins=5,
                                nybins=5,
                                min_max_y=(-0.05, 0.01),
                                to_ignore=['lr_lottery', 'reinit'])
Ejemplo n.º 2
0
def plot_gnmt_sparse_oneshot_epoch_for_epoch_core():
    common.epoch_for_epoch_plot(
        network=common.GNMT,
        is_iterative=False,
        prune_method=common.UNSTRUCTURED,
        min_max_y=(-8, 1.5),
        to_ignore=['lr_lottery', 'reinit'],
        nbins=6,
        nybins=6,
    )
Ejemplo n.º 3
0
def plot_resnet50_sparse_oneshot_epoch_for_epoch_core():
    common.epoch_for_epoch_plot(
        network=common.RESNET50,
        is_iterative=False,
        prune_method=common.UNSTRUCTURED,
        min_max_y=(-0.06, 0.01),
        to_ignore=['lr_lottery', 'reinit'],
        nbins=5,
        nybins=5,
    )
Ejemplo n.º 4
0
def plot_resnet34_structured_B_epoch_for_epoch():
    common.epoch_for_epoch_plot(
        network=common.RESNET34,
        is_iterative=False,
        prune_method=common.STRUCTURED_B,
        min_max_y=(-0.05, 0.01),
        comparison_points=[(0, .7255 - .7331),
                           (90 * .3154121864, .7291 - .7331)],
        comparison_label=common.RETHINKING,
    )
Ejemplo n.º 5
0
def plot_resnet34_structured_A_epoch_for_epoch():
    common.epoch_for_epoch_plot(
        network=common.RESNET34,
        is_iterative=False,
        prune_method=common.STRUCTURED_A,
        min_max_y=(-0.05, 0.01),
        comparison_points=[(0, .7277 - .7331),
                           (90 * .1819645733, .7303 - .7331)],
        comparison_label=common.RETHINKING,
        nbins=5,
    )
Ejemplo n.º 6
0
def plot_resnet110_structured_B_epoch_for_epoch():
    common.epoch_for_epoch_plot(
        network=common.RESNET110,
        is_iterative=False,
        prune_method=common.STRUCTURED_B,
        min_max_y=(-0.03, 0.01),
        comparison_points=[(0, 0.9289 - 0.9314),
                           (160 * .6272741807, 0.9360 - 0.9314)],
        comparison_err=[0.0043, 0.0025],
        comparison_label=common.RETHINKING,
    )
Ejemplo n.º 7
0
def plot_resnet110_structured_A_epoch_for_epoch():
    common.epoch_for_epoch_plot(
        network=common.RESNET110,
        is_iterative=False,
        prune_method=common.STRUCTURED_A,
        min_max_y=(-0.03, 0.01),
        comparison_points=[(0, 0.9325 - 0.9314),
                           (160 * .1882836396, 0.9322 - 0.9314)],
        comparison_err=[0.0029, 0.0022],
        comparison_label=common.RETHINKING,
    )
Ejemplo n.º 8
0
def plot_resnet56_structured_B_epoch_for_epoch():
    common.epoch_for_epoch_plot(
        network=common.RESNET56,
        is_iterative=False,
        prune_method=common.STRUCTURED_B,
        min_max_y=(-0.03, 0.01),
        comparison_points=[(0, 0.9254 - 0.9314),
                           (160 * .3791088785, 0.9305 - 0.9314)],
        comparison_err=[0.0019, 0.0018],
        comparison_label=common.RETHINKING,
    )
Ejemplo n.º 9
0
def plot_resnet56_structured_A_epoch_for_epoch():
    common.epoch_for_epoch_plot(
        network=common.RESNET56,
        is_iterative=False,
        prune_method=common.STRUCTURED_A,
        min_max_y=(-0.03, 0.01),
        comparison_points=[(0, 0.9296 - 0.9314),
                           (160 * .1156411502, 0.9309 - 0.9314)],
        comparison_err=[0.0026, 0.0014],
        comparison_label=common.RETHINKING,
    )
Ejemplo n.º 10
0
def plot_resnet110_structured_A_epoch_for_epoch_core():
    common.epoch_for_epoch_plot(network=common.RESNET110,
                                is_iterative=False,
                                prune_method=common.STRUCTURED_A,
                                min_max_y=(-0.03, 0.01),
                                to_ignore=['lr_lottery', 'reinit'])
Ejemplo n.º 11
0
def plot_gnmt_sparse_iterative_epoch_for_epoch():
    common.epoch_for_epoch_plot(network=common.GNMT,
                                is_iterative=True,
                                prune_method=common.UNSTRUCTURED,
                                min_max_y=(-6, 1.5))
Ejemplo n.º 12
0
def plot_resnet50_sparse_iterative_epoch_for_epoch():
    common.epoch_for_epoch_plot(network=common.RESNET50,
                                is_iterative=True,
                                prune_method=common.UNSTRUCTURED,
                                min_max_y=(-0.05, 0.01))
Ejemplo n.º 13
0
def plot_resnet110_sparse_oneshot_epoch_for_epoch():
    common.epoch_for_epoch_plot(network=common.RESNET110,
                                is_iterative=False,
                                prune_method=common.UNSTRUCTURED,
                                min_max_y=(-0.03, 0.01))