b0cd6a1df09c7157dea48265a5c21c3b7cc37399,softlearning/misc/nn.py,,feedforward_model,#Any#Any#Any#Any#Any#Any#,4

Before Change


                      name=None,
                      *args,
                      **kwargs):
    if not isinstance(input_shapes[0], (list, tuple)):
        raise NotImplementedError(
            "TODO(hartikainen): feedforward_model currently expects a list of"
            " shapes as an input. It might be possible that you passed in a"

After Change


        model.add(tf.keras.layers.Dense(
            units, *args, activation=activation, **kwargs))

    model.add(tf.keras.layers.Dense(
        output_size, *args, activation=output_activation, **kwargs))

    return model
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 3

Instances


Project Name: rail-berkeley/softlearning
Commit Name: b0cd6a1df09c7157dea48265a5c21c3b7cc37399
Time: 2018-10-29
Author: hartikainen@berkeley.edu
File Name: softlearning/misc/nn.py
Class Name:
Method Name: feedforward_model


Project Name: tensorflow/tpu
Commit Name: f59154b6dd8116bf1d5e0757ffdab19fb93199ca
Time: 2019-08-19
Author: pengchong@google.com
File Name: models/official/mnist/mnist_tpu.py
Class Name:
Method Name: model_fn


Project Name: tensorflow/privacy
Commit Name: 751eaead545d45bcc47bff7d82656b08c474b434
Time: 2019-06-10
Author: choquette.christopher@gmail.com
File Name: privacy/bolton/model.py
Class Name: Bolton
Method Name: compile