Browse Source

Rollback #448

tags/v0.13
Oceania2018 5 years ago
parent
commit
10f39ad203
1 changed files with 6 additions and 3 deletions
  1. +6
    -3
      src/TensorFlowNET.Core/Summaries/Summary.cs

+ 6
- 3
src/TensorFlowNET.Core/Summaries/Summary.cs View File

@@ -37,10 +37,13 @@ namespace Tensorflow.Summaries
return val;
}

public Tensor merge_all(string key = "summaries", string scope= null, string name= null)
public Tensor merge_all(string key = "summaries", string scope = null, string name = null)
{
var summary_ops = ops.get_collection<ITensorOrOperation>(key, scope: scope);
return merge(summary_ops.Select(x => x as Tensor).ToArray(), name: name);
var summary_ops = ops.get_collection(key, scope: scope);
if (summary_ops == null)
return null;
else
return merge((summary_ops as List<ITensorOrOperation>).Select(x => x as Tensor).ToArray(), name: name);
}

/// <summary>


Loading…
Cancel
Save