Skip to content

Commit d94e545

Browse files
committed
fix compile issue.
1 parent ff51917 commit d94e545

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/TensorFlowNET.Core/Sessions/_ElementFetchMapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ namespace Tensorflow
1111
public class _ElementFetchMapper<T> : _FetchMapper<T>
1212
{
1313
private List<object> _unique_fetches = new List<object>();
14-
private Func<List<object>> _contraction_fn;
14+
private Func<List<object>, NDArray> _contraction_fn;
1515

16-
public _ElementFetchMapper(List<T> fetches, Func<List<object>> contraction_fn)
16+
public _ElementFetchMapper(List<T> fetches, Func<List<object>, NDArray> contraction_fn)
1717
{
1818
foreach(var fetch in fetches)
1919
{

test/TensorFlowNET.UnitTest/VariableTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ public void Add()
3838
session.run(model);
3939
for(int i = 0; i < 5; i++)
4040
{
41-
//x = x + 1;
41+
// x = x + 1;
4242
var result = session.run(x);
4343
print(result);
4444
}

0 commit comments

Comments
 (0)