FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

BaseSession: Heavy perf-ops in sess.run logic-flow. · MSavameri/TensorFlow.NET@916ebc5 · GitHub

Repository navigation

Commit 916ebc5

Browse files
committed
BaseSession: Heavy perf-ops in sess.run logic-flow.
1 parent a7dd34d commit 916ebc5

4 files changed

Lines changed: 468 additions & 419 deletions

File tree

‎src/TensorFlowNET.Core/Graphs/Graph.cs‎

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -497,11 +497,9 @@ private IEnumerable<Operation> GetEnumerable()
497497
IEnumerator<Operation> IEnumerable<Operation>.GetEnumerator()
498498
=> GetEnumerable().GetEnumerator();
499499

500-
IEnumerator IEnumerable.GetEnumerator()
501-
{
502-
throw new NotImplementedException();
503-
}
504-
500+
IEnumerator IEnumerable.GetEnumerator()
501+
=> throw new NotImplementedException();
502+
505503
public static implicit operator IntPtr(Graph graph)
506504
{
507505
return graph._handle;

‎src/TensorFlowNET.Core/Graphs/ImportGraphDefOptions.cs‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,8 @@ namespace Tensorflow
2020
{
2121
public class ImportGraphDefOptions : DisposableObject
2222
{
23-
public int NumReturnOutputs => c_api.TF_ImportGraphDefOptionsNumReturnOutputs(_handle);
23+
public int NumReturnOutputs
24+
=> c_api.TF_ImportGraphDefOptionsNumReturnOutputs(_handle);
2425

2526
public ImportGraphDefOptions()
2627
{

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL