8a1ad36ddc77d956106aefe882b6fa04013bfcca,deepchem/models/tensorgraph/layers.py,Conv3D,__init__,#Conv3D#Any#Any#Any#Any#Any#Any#Any#Any#Any#,2064
Before Change
strides = stride
if isinstance(stride, int):
strides = (stride, stride, stride)
if padding.lower() == "same":
self._shape = (parent_shape[0],
int(np.ceil(parent_shape[1] / strides[0])),
int(np.ceil(parent_shape[2] / strides[1])),
int(np.ceil(parent_shape[3] / strides[2])), num_outputs)
else:
self._shape = (parent_shape[0], parent_shape[1] // strides[0],
parent_shape[2] // strides[1],
parent_shape[3] // strides[2], num_outputs)
except:
pass
def _build_layer(self, reuse):
After Change
strides = stride
if isinstance(stride, int):
strides = (stride, stride, stride)
if isinstance(kernel_size, int):
kernel_size = (kernel_size, kernel_size, kernel_size)
self._shape = (parent_shape[0],
_conv_size(parent_shape[1], kernel_size[0], strides[0],
padding),
_conv_size(parent_shape[2], kernel_size[1], strides[1],
padding),
_conv_size(parent_shape[3], kernel_size[2], strides[2],
padding), num_outputs)
except:
pass
def _build_layer(self, reuse):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 27
Instances
Project Name: deepchem/deepchem
Commit Name: 8a1ad36ddc77d956106aefe882b6fa04013bfcca
Time: 2018-11-13
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/layers.py
Class Name: Conv3D
Method Name: __init__
Project Name: deepchem/deepchem
Commit Name: 8a1ad36ddc77d956106aefe882b6fa04013bfcca
Time: 2018-11-13
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/layers.py
Class Name: Conv3D
Method Name: __init__
Project Name: deepchem/deepchem
Commit Name: 8a1ad36ddc77d956106aefe882b6fa04013bfcca
Time: 2018-11-13
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/layers.py
Class Name: Conv1D
Method Name: __init__
Project Name: deepchem/deepchem
Commit Name: 8a1ad36ddc77d956106aefe882b6fa04013bfcca
Time: 2018-11-13
Author: peastman@stanford.edu
File Name: deepchem/models/tensorgraph/layers.py
Class Name: Conv2D
Method Name: __init__