94805fb8054d3b68d037d324ee6d407f323df0cf,tcn/tcn.py,TCN,__init__,#TCN#,187

Before Change


            raise ValueError("Only "causal" or "same" padding are compatible for this layer.")

        if not isinstance(nb_filters, int):
            print("An interface change occurred after the version 2.1.2.")
            print("Before: tcn.TCN(x, return_sequences=False, ...)")
            print("Now should be: tcn.TCN(return_sequences=False, ...)(x)")
            print("The alternative is to downgrade to 2.1.2 (pip install keras-tcn==2.1.2).")
            raise Exception()

After Change


        self.lambda_layer = None
        self.lambda_ouput_shape = None

        if isinstance(self.nb_filters, list):
            assert len(self.nb_filters) == len(self.dilations)

        if padding != "causal" and padding != "same":
            raise ValueError("Only "causal" or "same" padding are compatible for this layer.")

        // initialize parent class
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: philipperemy/keras-tcn
Commit Name: 94805fb8054d3b68d037d324ee6d407f323df0cf
Time: 2020-04-25
Author: premy.enseirb@gmail.com
File Name: tcn/tcn.py
Class Name: TCN
Method Name: __init__


Project Name: maciejkula/spotlight
Commit Name: b14ddcdcfb9c05bd1fdf7adf0eedf0737a97db27
Time: 2017-10-13
Author: maciej.kula@gmail.com
File Name: tests/test_evaluation_metrics.py
Class Name:
Method Name: test_precision_recall


Project Name: onnx/onnxmltools
Commit Name: 8ae70fc5866ac29542aa1681c712f4a6ff5dec88
Time: 2019-02-19
Author: vinitras@gmail.com
File Name: onnxmltools/utils/main.py
Class Name:
Method Name: save_text