0c4f11cf0dcbd6c01641705d9040907bdb686fca,tensorlayer/layers/convolution/simplified_deconv.py,DeConv3d,build,#DeConv3d#,242

Before Change


            bias_initializer=self.b_init,
            name=self.name,
        )
        if self.data_format == "channels_first":
            self.in_channels = inputs_shape[1]
        else:
            self.in_channels = inputs_shape[-1]

        _out = self.layer(
            tf.convert_to_tensor(np.random.uniform(size=inputs_shape), dtype=np.float32)
        )  //self.layer(np.random.uniform([1] + list(inputs_shape)))  // initialize weights
        outputs_shape = _out.shape

After Change


            bias_initializer=self.b_init,
            name=self.name,
        )
        if inputs_shape is not None:
            self.in_channels = inputs_shape[1 if self.data_format == "channels_first" else -1]
        elif self.in_channels is not None:
            inputs_shape = [1, self.in_channels, 1, 1, 1] if self.data_format == "channels_first" else [1, 1, 1, 1, self.in_channels]
        else:
            raise ValueError("Either inputs_shape or in_channels must be specified for build.")
        _out = self.layer(
            tf.convert_to_tensor(np.random.uniform(size=inputs_shape), dtype=np.float32)
        )  //self.layer(np.random.uniform([1] + list(inputs_shape)))  // initialize weights
        outputs_shape = _out.shape
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 9

Instances


Project Name: tensorlayer/tensorlayer
Commit Name: 0c4f11cf0dcbd6c01641705d9040907bdb686fca
Time: 2020-05-09
Author: 3139658+tiancheng2000@users.noreply.github.com
File Name: tensorlayer/layers/convolution/simplified_deconv.py
Class Name: DeConv3d
Method Name: build


Project Name: scikit-image/scikit-image
Commit Name: 9ce31f7b61bd03877727ebf0ea94fd1505da61e7
Time: 2019-08-25
Author: egor.v.panfilov@gmail.com
File Name: skimage/morphology/convex_hull.py
Class Name:
Method Name: convex_hull_object


Project Name: tensorlayer/tensorlayer
Commit Name: 0c4f11cf0dcbd6c01641705d9040907bdb686fca
Time: 2020-05-09
Author: 3139658+tiancheng2000@users.noreply.github.com
File Name: tensorlayer/layers/convolution/simplified_deconv.py
Class Name: DeConv2d
Method Name: build