400e086b944906999e2b4567e8ec55a342f86bae,snntoolbox/core/inisim.py,,spike_pool2d,#Any#Any#Any#Any#Any#Any#,791

Before Change


        raise Exception("Invalid border mode: " + str(border_mode))

    if dim_ordering not in {"th", "tf"}:
        raise Exception("Unknown dim_ordering " + str(dim_ordering))

    if dim_ordering == "tf":
        x = x.dimshuffle((0, 3, 1, 2))
        y = y.dimshuffle((0, 3, 1, 2))

After Change



    if data_format is None:
        data_format = k.image_data_format()
    if data_format not in {"channels_first", "channels_last"}:
        raise ValueError("Unknown data_format:", data_format)

    assert pool_size[0] >= 1 and pool_size[1] >= 1
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: NeuromorphicProcessorProject/snn_toolbox
Commit Name: 400e086b944906999e2b4567e8ec55a342f86bae
Time: 2017-03-31
Author: bodo.rueckauer@gmail.com
File Name: snntoolbox/core/inisim.py
Class Name:
Method Name: spike_pool2d


Project Name: keras-team/keras
Commit Name: 075c34d037ec564aa9c923a653c2cc3135c99510
Time: 2015-12-07
Author: max.pumperla@googlemail.com
File Name: keras/backend/tensorflow_backend.py
Class Name:
Method Name: pool2d


Project Name: BYU-PCCL/holodeck
Commit Name: df354e8ba82e20eb6c3e0e2863c57368e1c9e3d4
Time: 2016-12-14
Author: joshua.greaves@googlemail.com
File Name: Holodeck/holodeck_agents.py
Class Name: UAVAgent
Method Name: act