9a062c6473109dfdd545d1db84f62b5037c53128,snntoolbox/model_libs/caffe_input_lib.py,ModelParser,get_outbound_layers,#ModelParser#Any#,124
Before Change
def get_outbound_layers(self, layer):
layers = self.get_layer_iterable()
outbound = []
for outb in layer.top: // Contains only labels
for layer in layers:
if outb == layer.name:
outbound.append(layer)
break
return outbound
def parse_concatenate(self, layer, attributes):
attributes.update({"mode": "concat",
After Change
def get_outbound_layers(self, layer):
layers = self.get_layer_iterable()
layer_ids = [id(l) for l in layers]
current_idx = layer_ids.index(id(layer))
return [] if current_idx + 1 >= len(layer_ids) \
else [layers[current_idx + 1]]
def parse_concatenate(self, layer, attributes):
attributes.update({"mode": "concat",
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 9a062c6473109dfdd545d1db84f62b5037c53128
Time: 2017-06-13
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/model_libs/caffe_input_lib.py
Class Name: ModelParser
Method Name: get_outbound_layers
Project Name: home-assistant/home-assistant
Commit Name: 1d615ea6c3a5f9b3ae6481b827919f04f23c09ce
Time: 2017-08-25
Author: marhje52@kth.se
File Name: homeassistant/components/mysensors.py
Class Name:
Method Name: setup
Project Name: home-assistant/home-assistant
Commit Name: 8775c54d29a4adcc11a55c4a37db7da54eccc6e7
Time: 2017-08-25
Author: marhje52@kth.se
File Name: homeassistant/components/mysensors.py
Class Name:
Method Name: setup