|
|
@@ -347,19 +347,21 @@ namespace Tensorflow.Keras |
|
|
|
string data_format = null, |
|
|
|
Shape dilation_rate = null) |
|
|
|
{ |
|
|
|
/* |
|
|
|
var force_transpose = false; |
|
|
|
if (data_format == "channels_first" && !dilation_rate.Equals(new[] { 1, 1 })) |
|
|
|
force_transpose = true; |
|
|
|
// x, tf_data_format = _preprocess_conv2d_input(x, data_format, force_transpose) |
|
|
|
x, tf_data_format = _preprocess_conv2d_input(x, data_format, force_transpose) |
|
|
|
*/ |
|
|
|
var tf_data_format = "NHWC"; |
|
|
|
padding = padding.ToUpper(); |
|
|
|
strides = new Shape(1, strides[0], strides[1], 1); |
|
|
|
if (dilation_rate.Equals(new long[] { 1, 1 })) |
|
|
|
if (dilation_rate.Equals(new[] { 1, 1 })) |
|
|
|
x = nn_impl.conv2d_transpose(x, kernel, output_shape, strides, |
|
|
|
padding: padding, |
|
|
|
data_format: tf_data_format); |
|
|
|
else |
|
|
|
throw new NotImplementedException(""); |
|
|
|
throw new NotImplementedException("dilation_rate other than [1,1] is not yet supported"); |
|
|
|
|
|
|
|
return x; |
|
|
|
} |
|
|
|