fc5da69efb1f5f897c664a9c6ed32fb17270afaf,snntoolbox/parsing/utils.py,,get_fanout,#Any#Any#,964

Before Change


            fanout += 1
        elif "Dense" in layer.name:
            fanout += next_layer.units
        elif "Pool" in layer.name and "Conv" in next_layer.name:
            fanout += np.prod(next_layer.kernel_size) * next_layer.filters
        elif "Pool" in layer.name and "Dense" in next_layer.name:
            fanout += next_layer.units

After Change


    next_layers = get_spiking_outbound_layers(layer, config)
    fanout = 0
    for next_layer in next_layers:
        if "Conv" in next_layer.name and not has_stride_unity(next_layer):
            fanout = np.zeros(layer.output_shape[1:])
            break

    for next_layer in next_layers:
        if "Dense" in next_layer.name:
            fanout += next_layer.units
        elif "Pool" in next_layer.name:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: fc5da69efb1f5f897c664a9c6ed32fb17270afaf
Time: 2017-08-18
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/parsing/utils.py
Class Name:
Method Name: get_fanout


Project Name: uber/ludwig
Commit Name: 18a12b023f394b102ac6cafa1b935055c6f8d849
Time: 2020-05-07
Author: jimthompson5802@gmail.com
File Name: ludwig/models/modules/sequence_decoders.py
Class Name: SequenceGeneratorDecoder
Method Name: call


Project Name: NervanaSystems/coach
Commit Name: 52eb159f696e9cd810072c3a2cc350ae8843f707
Time: 2018-04-23
Author: 30383381+itaicaspi-intel@users.noreply.github.com
File Name: agents/agent.py
Class Name: Agent
Method Name: act