71e3ab5600687fc5d8b5e891fbc12f82869c11d7,tensorboardX/pytorch_graph.py,,parse,#Any#,14

Before Change


            if inputs[i] not in scope.keys():
                scope[inputs[i]] = n.scopeName()

        uname = next(iter(n.outputs())).uniqueName()
        if n.scopeName() == "":
            print("{} has empty scope name. FIXME!".format(n))
            scope[uname] = "unknownScope"
        else:

After Change


            print("{} has empty scope name. FIXME!".format(n))
            scopename = "unknownScope"

        for outputnode in iter(n.outputs()):
            uname = outputnode.uniqueName()
            scope[uname] = scopename

    if LooseVersion(torch.__version__) >= LooseVersion("0.4"):
        scope["0"] = "input"
    else:
        scope["1"] = "input"
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 4

Instances


Project Name: lanpa/tensorboardX
Commit Name: 71e3ab5600687fc5d8b5e891fbc12f82869c11d7
Time: 2018-11-08
Author: teffland@users.noreply.github.com
File Name: tensorboardX/pytorch_graph.py
Class Name:
Method Name: parse


Project Name: dgasmith/opt_einsum
Commit Name: 81ce5ee9a1590e7b4154e72dca54c33ad27b6d89
Time: 2018-07-21
Author: john.gray.14@ucl.ac.uk
File Name: opt_einsum/contract.py
Class Name: ContractExpression
Method Name: __call__


Project Name: pysb/pysb
Commit Name: c1d90eb24252a22bc1fde0f56b903ea599c9512e
Time: 2017-04-04
Author: alubbock@users.noreply.github.com
File Name: pysb/importers/sbml.py
Class Name:
Method Name: sbml_translator


Project Name: dmlc/gluon-nlp
Commit Name: 89b41bdfb98a27f64d6331a524b83d9665cdd8ba
Time: 2019-10-21
Author: linhaibin.eric@gmail.com
File Name: scripts/bert/data/dataloader.py
Class Name: _MultiWorkerIter
Method Name: __init__


Project Name: stratosphereips/StratosphereLinuxIPS
Commit Name: 7ed9642a45fca06809b924b03dedf8079ea3bce9
Time: 2019-06-15
Author: eldraco@gmail.com
File Name: slips/core/database.py
Class Name: Database
Method Name: setInfoForIPs