SciSharp / TensorFlow.NET

.NET Standard bindings for Google's TensorFlow for developing, training and deploying Machine Learning models in C# and F#.
https://scisharp.github.io/tensorflow-net-docs
Apache License 2.0
3.2k stars 514 forks source link

fix: can't implement len for KerasShapesWrapper & Add bias implement to Conv2DTranspose.Call() #1078

Closed lingbai-kong closed 1 year ago

lingbai-kong commented 1 year ago

Solve 2nd problem of #1012

Before solving the issue, I found another bug in Conv2DTranspose.build(). The len() cannot be used for input_shape after the commit 747e658, which change the type of input_shape from Shape to KerasShapesWrapper. I solved it by using len(single_shape) instead of len(input_shape), where single_shape = input_shape.ToSingleShape().

Back to the issue, the NotImplementedException raised because the lack of implement to handle 'use_bias' in 'Call' process of Conv2DTranspose. I add the code referring original TensorFlow.

Thanks!