Browse Source

avoid modifying collection

pull/1234/head
barfeous 1 year ago
parent
commit
eb0f025772
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      src/TensorFlowNET.Core/Training/Saving/SavedModel/AugmentedGraphView.cs

+ 2
- 2
src/TensorFlowNET.Core/Training/Saving/SavedModel/AugmentedGraphView.cs View File

@@ -88,7 +88,7 @@ public class AugmentedGraphView: ObjectGraphView

public override (IList<Trackable>, IDictionary<Trackable, IEnumerable<TrackableReference>>) breadth_first_traversal()
{
Trackable get_merged_trackable(Trackable x)
void merged_trackable(Trackable x)
{
// TODO: complete it with new definitions `Asset` and `TrackableConstant`.
return x;
@@ -100,7 +100,7 @@ public class AugmentedGraphView: ObjectGraphView
// skip the deletion of cache (maybe do it later).
foreach(var pair in _children_cache[obj])
{
_children_cache[obj][pair.Key] = get_merged_trackable(pair.Value);
merged_trackable(pair.Value);
}
}



Loading…
Cancel
Save