Skip to content

Commit 80e5e18

Browse files
dssOceania2018
authored andcommitted
Conv2DTranspose would always throw NotImplementedException regardless of dilation_rate used due to a wrong type being used for comparison
1 parent ebfb327 commit 80e5e18

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/TensorFlowNET.Keras/BackendImpl.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -354,7 +354,7 @@ public Tensor conv2d_transpose(Tensor x,
354354
var tf_data_format = "NHWC";
355355
padding = padding.ToUpper();
356356
strides = new Shape(1, strides[0], strides[1], 1);
357-
if (dilation_rate.Equals(new[] { 1, 1 }))
357+
if (dilation_rate.Equals(new long[] { 1, 1 }))
358358
x = nn_impl.conv2d_transpose(x, kernel, output_shape, strides,
359359
padding: padding,
360360
data_format: tf_data_format);

0 commit comments

Comments
 (0)