7dafb05754fe268bb5f76a1c97cf3a14062f44e5,fairseq_cli/train.py,,main,#Any#,47

Before Change


    logger.info("criterion: {}".format(criterion.__class__.__name__))
    logger.info(
        "num. model params: {:,} (num. trained: {:,})".format(
            sum(getattr(p, "_orig_size", p).numel() for p in model.parameters()),
            sum(getattr(p, "_orig_size", p).numel() for p in model.parameters() if p.requires_grad),
        )
    )

After Change


    logger.info(
        "num. expert model params: {} (num. trained: {})".format(
            sum(p.numel() for p in model.parameters() if getattr(p, "expert", False)),
            sum(p.numel() for p in model.parameters() if getattr(p, "expert", False) and p.requires_grad),
        )
    )
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: pytorch/fairseq
Commit Name: 7dafb05754fe268bb5f76a1c97cf3a14062f44e5
Time: 2021-03-29
Author: mikelewis@fb.com
File Name: fairseq_cli/train.py
Class Name:
Method Name: main


Project Name: matplotlib/matplotlib
Commit Name: 0745b37b752c981dbc22e466abf248459b8d2f0a
Time: 2020-08-10
Author: jklymak@gmail.com
File Name: lib/matplotlib/_pylab_helpers.py
Class Name: Gcf
Method Name: destroy_fig


Project Name: ilastik/ilastik
Commit Name: 41d9e8fdbbf8ae4d6f93bb061603831c0608d394
Time: 2020-05-13
Author: tom.fogaca@gmail.com
File Name: ilastik/applets/dataSelection/datasetInfoEditorWidget.py
Class Name: DatasetInfoEditorWidget
Method Name: accept