This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from keras.backend import * | |
from keras.backend.tensorflow_backend import _preprocess_conv3d_input, _preprocess_conv3d_kernel, _preprocess_border_mode, _postprocess_conv3d_output | |
def _preprocess_deconv3d_output_shape(shape, dim_ordering): | |
if dim_ordering == 'th': | |
shape = (shape[0], shape[2], shape[3], shape[4], shape[1]) | |
return shape | |
def deconv3d(x, kernel, output_shape, strides=(1, 1, 1), | |
border_mode='valid', |