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.
1 parent 3448b64 commit 4a31621Copy full SHA for 4a31621
src/TensorFlowNET.Core/Training/Saving/SavedModel/AugmentedGraphView.cs
@@ -109,15 +109,11 @@ void merged_trackable(Trackable x)
109
110
public List<(string, Trackable)> list_dependencies(Trackable obj)
111
{
112
- IDictionary<string, Trackable> children;
113
- if (!_children_cache.ContainsKey(obj))
+ if (!_children_cache.TryGetValue(obj, out var children))
114
115
children= new Dictionary<string, Trackable>();
116
}
117
- else
118
- {
119
- children= _children_cache[obj];
120
- }
+
121
List<(string, Trackable)> res = new();
122
foreach(var pair in obj.deserialization_dependencies(children))
123
0 commit comments