fde7cc023ea226bf01563d0cbce919e85f8701fd,model.py,,_last,#Any#Any#,190
Before Change
while len(last) < graph.number_of_nodes():
next_ind = [] // layers at prev time point
for ind in curr_ind:
if ind not in last:
last[ind] = t
// then add adjacency list onto next_ind
next_ind.extend(graph.predecessors(ind))
curr_ind = next_ind
t -= 1
return last
After Change
while len(curr_layers) > 0:
next_layers = [] // layers at prev time point
for layer in curr_layers:
if "last" not in graph.node[layer]:
graph.node[layer]["last"] = t
// then add adjacency list onto next_layer
next_layers.extend(graph.predecessors(layer))
curr_layers = next_layers
t -= 1
def _maxpool(input_, out_spatial, kernel_size=None, name="pool"):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 8
Instances
Project Name: neuroailab/tnn
Commit Name: fde7cc023ea226bf01563d0cbce919e85f8701fd
Time: 2016-10-02
Author: qbilius@gmail.com
File Name: model.py
Class Name:
Method Name: _last
Project Name: snipsco/snips-nlu
Commit Name: 7c50d9677032e4ea15c5c5ca5c96a85994aa39a4
Time: 2018-02-15
Author: clement.doumouro@gmail.com
File Name: nlu_dataset/assistant_dataset.py
Class Name: AssistantDataset
Method Name: json
Project Name: neuroailab/tnn
Commit Name: fde7cc023ea226bf01563d0cbce919e85f8701fd
Time: 2016-10-02
Author: qbilius@gmail.com
File Name: model.py
Class Name:
Method Name: _first