74329d0c1d26301be82955fbf8e524cb6508c953,keras/backend/tensorflow_backend.py,Function,__init__,#Function#Any#Any#Any#,1091

Before Change


    def __init__(self, inputs, outputs, updates=[]):
        assert type(inputs) in {list, tuple}, "Input to a TensorFlow backend function should be a list or tuple."
        assert type(outputs) in {list, tuple}, "Output to a TensorFlow backend function should be a list or tuple."
        assert type(updates) in {list, tuple}, "Updates in a TensorFlow backend function should be a list or tuple."
        self.inputs = list(inputs)
        self.outputs = list(outputs)
        with tf.control_dependencies(self.outputs):
            updates_ops = []

After Change


class Function(object):

    def __init__(self, inputs, outputs, updates=[]):
        if not isinstance(inputs, (list, tuple)):
            raise TypeError("`inputs` to a TensorFlow backend function "
                            "should be a list or tuple.")
        if not isinstance(outputs, (list, tuple)):
            raise TypeError("`outputs` of a TensorFlow backend function "
                            "should be a list or tuple.")
        if not isinstance(updates, (list, tuple)):
            raise TypeError("`updates` in a TensorFlow backend function "
                            "should be a list or tuple.")
        self.inputs = list(inputs)
        self.outputs = list(outputs)
        with tf.control_dependencies(self.outputs):
            updates_ops = []
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 11

Instances


Project Name: keras-team/keras
Commit Name: 74329d0c1d26301be82955fbf8e524cb6508c953
Time: 2016-12-13
Author: francois.chollet@gmail.com
File Name: keras/backend/tensorflow_backend.py
Class Name: Function
Method Name: __init__


Project Name: OpenMined/PySyft
Commit Name: f1d55314dacb8300e2bd6d3c595883c0cb5336f6
Time: 2020-10-20
Author: kevivthapion@gmail.com
File Name: syft/frameworks/torch/mpc/securenn.py
Class Name:
Method Name: private_compare


Project Name: OpenMined/PySyft
Commit Name: f1d55314dacb8300e2bd6d3c595883c0cb5336f6
Time: 2020-10-20
Author: kevivthapion@gmail.com
File Name: syft/frameworks/torch/nn/functional.py
Class Name:
Method Name: conv2d