Browse Source

Conv2DTranspose would always throw NotImplementedException regardless of dilation_rate used due to a wrong type being used for comparison

tags/TimeSeries
dss Haiping 3 years ago
parent
commit
80e5e185b1
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/TensorFlowNET.Keras/BackendImpl.cs

+ 1
- 1
src/TensorFlowNET.Keras/BackendImpl.cs View File

@@ -354,7 +354,7 @@ namespace Tensorflow.Keras
var tf_data_format = "NHWC"; var tf_data_format = "NHWC";
padding = padding.ToUpper(); padding = padding.ToUpper();
strides = new Shape(1, strides[0], strides[1], 1); 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, x = nn_impl.conv2d_transpose(x, kernel, output_shape, strides,
padding: padding, padding: padding,
data_format: tf_data_format); data_format: tf_data_format);


Loading…
Cancel
Save