e2e0f0f7791731d3b7dfa989cae569c15a22cdd6,tensornets/middles.py,,names_nasnets,#,37

Before Change


def names_nasnets(k):
    names = ["normal%d/concat:0" % (i + 1) for i in range(k)]
    names.insert(k // 3, "reduction%d/concat:0" % (k // 3))
    names.insert(k // 3 * 2 + 1, "reduction%d/concat:0" % (k // 3 * 2))
    return names


def names_vggs(k):

After Change



def names_nasnets(k):
    names = []
    for i in range(3):
        base = sum(k[:i])
        names += ["normal%d/concat:0" % (base + j + 1) for j in range(k[i])]
        if i < 2:
            names += ["reduction%d/concat:0" % (base + k[i])]
    return names


def names_vggs(k):
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: taehoonlee/tensornets
Commit Name: e2e0f0f7791731d3b7dfa989cae569c15a22cdd6
Time: 2018-05-12
Author: me@taehoonlee.com
File Name: tensornets/middles.py
Class Name:
Method Name: names_nasnets


Project Name: cve-search/cve-search
Commit Name: 412e06fce467da87161cb535ba25c4234a0c3712
Time: 2014-10-02
Author: pieterjan.moreels@gmail.com
File Name: db_whitelist.py
Class Name:
Method Name:


Project Name: jazzband/django-debug-toolbar
Commit Name: 5d095f66fde8f10b45a93c0b35be0a85762b0458
Time: 2019-06-20
Author: jon.dufresne@gmail.com
File Name: debug_toolbar/panels/templates/panel.py
Class Name: TemplatesPanel
Method Name: _store_template_info