From 1fa8e267d05c353db367b9378345ed7be6624b85 Mon Sep 17 00:00:00 2001 From: dss Date: Fri, 24 Dec 2021 20:21:34 -0700 Subject: [PATCH] Conv2DTranspose would always throw NotImplementedException regardless of dilation_rate used due to a wrong type being used for comparison --- src/TensorFlowNET.Keras/BackendImpl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/TensorFlowNET.Keras/BackendImpl.cs b/src/TensorFlowNET.Keras/BackendImpl.cs index d0102b70..7588647d 100644 --- a/src/TensorFlowNET.Keras/BackendImpl.cs +++ b/src/TensorFlowNET.Keras/BackendImpl.cs @@ -356,7 +356,7 @@ namespace Tensorflow.Keras var tf_data_format = "NHWC"; padding = padding.ToUpper(); strides = new Shape(1, strides[0], strides[1], 1); - if (dilation_rate.Equals(new[] { 1, 1 })) + if (dilation_rate.Equals(new long[] { 1, 1 })) x = nn_impl.conv2d_transpose(x, kernel, output_shape, strides, padding: padding, data_format: tf_data_format);