From 80e5e185b116a7edd5d100250562b85e45652586 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 bb04cd9c..9b822971 100644 --- a/src/TensorFlowNET.Keras/BackendImpl.cs +++ b/src/TensorFlowNET.Keras/BackendImpl.cs @@ -354,7 +354,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);