We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents d5f5c57 + eb4ff88 commit e79ecb7Copy full SHA for e79ecb7
src/TensorFlowNET.Keras/Engine/Layer.Serialize.cs
@@ -27,6 +27,6 @@ public override IDictionary<string, Trackable> _trackable_children(SaveType save
27
children = new Dictionary<string, Trackable>();
28
}
29
30
- return children.Concat(base._trackable_children(save_type, cache)).ToDictionary(x => x.Key, x => x.Value);
+ return children.Concat(base._trackable_children(save_type, cache)).GroupBy(x => x.Key).Select(g => g.First()).ToDictionary(x => x.Key, x => x.Value);
31
32
0 commit comments