aa94e2f289e7c019432bee931a18f3d4ae777913,tensorlayer/layers/convolution/separable_conv.py,SeparableConv2d,build,#SeparableConv2d#Any#,240
Before Change
)
_out = self.layer(np.random.uniform([1] + list(inputs_shape))) // initialize weights
outputs_shape = _out.shape
self._add_weights(self.layer.weights)
def forward(self, inputs):
outputs = self.layer(inputs)
return outputs
After Change
else:
self.in_channels = inputs_shape[-1]
// _out = self.layer(np.random.uniform([1] + list(inputs_shape))) // initialize weights
_out = self.layer(tf.convert_to_tensor(np.random.uniform(size=list(inputs_shape)), dtype=np.float)) // initialize weights
outputs_shape = _out.shape
//self._add_weights(self.layer.weights)
self._weights = self.layer.weights
In pattern: SUPERPATTERN
Frequency: 4
Non-data size: 3
Instances
Project Name: tensorlayer/tensorlayer
Commit Name: aa94e2f289e7c019432bee931a18f3d4ae777913
Time: 2019-03-16
Author: 37874862+warshallrho@users.noreply.github.com
File Name: tensorlayer/layers/convolution/separable_conv.py
Class Name: SeparableConv2d
Method Name: build
Project Name: tensorlayer/tensorlayer
Commit Name: aa94e2f289e7c019432bee931a18f3d4ae777913
Time: 2019-03-16
Author: 37874862+warshallrho@users.noreply.github.com
File Name: tensorlayer/layers/convolution/separable_conv.py
Class Name: SeparableConv1d
Method Name: build
Project Name: tensorlayer/tensorlayer
Commit Name: b3b2a1fac973d4d9630b8917421a5d15f9d539ad
Time: 2019-03-05
Author: dhsig552@163.com
File Name: tensorlayer/layers/convolution/simplified_deconv.py
Class Name: DeConv2d
Method Name: build
Project Name: tensorlayer/tensorlayer
Commit Name: b3b2a1fac973d4d9630b8917421a5d15f9d539ad
Time: 2019-03-05
Author: dhsig552@163.com
File Name: tensorlayer/layers/convolution/simplified_deconv.py
Class Name: DeConv3d
Method Name: build