Skip to content

Instantly share code, notes, and snippets.

Avatar

Vishruit Kulshreshtha Vishruit

View GitHub Profile
View backend_updated.py
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',