Skip to content

Commit 1fa8e26

Browse files
dssOceania2018
dss
authored andcommitted
Conv2DTranspose would always throw NotImplementedException regardless of dilation_rate used due to a wrong type being used for comparison
1 parent 67a7fc5 commit 1fa8e26

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
@@ -356,7 +356,7 @@ public Tensor conv2d_transpose(Tensor x,
356356
var tf_data_format = "NHWC";
357357
padding = padding.ToUpper();
358358
strides = new Shape(1, strides[0], strides[1], 1);
359-
if (dilation_rate.Equals(new[] { 1, 1 }))
359+
if (dilation_rate.Equals(new long[] { 1, 1 }))
360360
x = nn_impl.conv2d_transpose(x, kernel, output_shape, strides,
361361
padding: padding,
362362
data_format: tf_data_format);

0 commit comments

Comments
 (0)