Browse Source

add _FetchHandler

tags/v0.1.0-Tensor
haiping008 6 years ago
parent
commit
6b20496eb5
3 changed files with 22 additions and 2 deletions
  1. +5
    -2
      src/TensorFlowNET.Core/Session/BaseSession.cs
  2. +0
    -0
      src/TensorFlowNET.Core/Session/Session.cs
  3. +17
    -0
      src/TensorFlowNET.Core/Session/_FetchHandler.cs

src/TensorFlowNET.Core/BaseSession.cs → src/TensorFlowNET.Core/Session/BaseSession.cs View File

@@ -62,7 +62,10 @@ namespace Tensorflow
feed_dict_tensor[feed.Key] = np_val;
}
}

// Create a fetch handler to take care of the structure of fetches.
var fetch_handler = new _FetchHandler();

var status = new Status();

c_api.TF_SessionRun(_session,
@@ -70,7 +73,7 @@ namespace Tensorflow
inputs: new TF_Output[] { },
input_values: new IntPtr[] { },
ninputs: 0,
outputs: new TF_Output[] { },
outputs: new TF_Output[] { new TF_Output() },
output_values: new IntPtr[] { },
noutputs: 1,
target_opers: new IntPtr[] { },

src/TensorFlowNET.Core/Session.cs → src/TensorFlowNET.Core/Session/Session.cs View File


+ 17
- 0
src/TensorFlowNET.Core/Session/_FetchHandler.cs View File

@@ -0,0 +1,17 @@
using System;
using System.Collections.Generic;
using System.Text;

namespace Tensorflow
{
/// <summary>
/// Handler for structured fetches.
/// </summary>
public class _FetchHandler
{
public _FetchHandler(Graph graph, Tensor fetches)
{

}
}
}

Loading…
Cancel
Save