Browse Source

fix compile issue.

tags/v0.1.0-Tensor
Oceania2018 6 years ago
parent
commit
d94e545448
2 changed files with 3 additions and 3 deletions
  1. +2
    -2
      src/TensorFlowNET.Core/Sessions/_ElementFetchMapper.cs
  2. +1
    -1
      test/TensorFlowNET.UnitTest/VariableTest.cs

+ 2
- 2
src/TensorFlowNET.Core/Sessions/_ElementFetchMapper.cs View File

@@ -11,9 +11,9 @@ namespace Tensorflow
public class _ElementFetchMapper<T> : _FetchMapper<T> public class _ElementFetchMapper<T> : _FetchMapper<T>
{ {
private List<object> _unique_fetches = new List<object>(); private List<object> _unique_fetches = new List<object>();
private Func<List<object>> _contraction_fn;
private Func<List<object>, NDArray> _contraction_fn;


public _ElementFetchMapper(List<T> fetches, Func<List<object>> contraction_fn)
public _ElementFetchMapper(List<T> fetches, Func<List<object>, NDArray> contraction_fn)
{ {
foreach(var fetch in fetches) foreach(var fetch in fetches)
{ {


+ 1
- 1
test/TensorFlowNET.UnitTest/VariableTest.cs View File

@@ -38,7 +38,7 @@ namespace TensorFlowNET.UnitTest
session.run(model); session.run(model);
for(int i = 0; i < 5; i++) for(int i = 0; i < 5; i++)
{ {
//x = x + 1;
// x = x + 1;
var result = session.run(x); var result = session.run(x);
print(result); print(result);
} }


Loading…
Cancel
Save