75cba1be3373908e6a1a971778a14e40b240ce4f,softqlearning/misc/nn.py,MLPFunction,__init__,#MLPFunction#Any#Any#Any#,213

Before Change



        self._name = name
        self._input_pls = input_pls
        self._layer_sizes = list(hidden_layer_sizes) + [1]

        self._output_t = self.get_output_for(*self._input_pls)

    def get_output_for(self, *inputs, reuse=False):

After Change


    def bias(n_units):
        return tf.get_variable(
            name="bias",
            shape=n_units,
            initializer=tf.zeros_initializer())

    def linear(x, n_units, postfix=None):
        input_size = x.shape[-1].value
        weight_name = "weight" + "_" + str(postfix) if postfix else "weight"
        weight = tf.get_variable(
            name=weight_name,
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 5

Instances


Project Name: rail-berkeley/softlearning
Commit Name: 75cba1be3373908e6a1a971778a14e40b240ce4f
Time: 2018-01-26
Author: haarnoja@users.noreply.github.com
File Name: softqlearning/misc/nn.py
Class Name: MLPFunction
Method Name: __init__


Project Name: rail-berkeley/softlearning
Commit Name: 62845374dae01703714b91b07bc95fb76bb77809
Time: 2018-05-22
Author: haarnoja@users.noreply.github.com
File Name: sac/misc/mlp.py
Class Name: MLPFunction
Method Name: __init__


Project Name: NifTK/NiftyNet
Commit Name: 60ac44f9e688577d47ae506be06058a8916af100
Time: 2018-05-08
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/engine/image_window.py
Class Name: ImageWindow
Method Name: _update_placeholders_dict