Browse Source

scan unit test

tags/v0.30
quanap5kr Esther Hu 4 years ago
parent
commit
fe82fd5c26
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      test/TensorFlowNET.UnitTest/ManagedAPI/ControlFlowApiTest.cs

+ 2
- 0
test/TensorFlowNET.UnitTest/ManagedAPI/ControlFlowApiTest.cs View File

@@ -47,10 +47,12 @@ namespace TensorFlowNET.UnitTest.ManagedAPI
Assert.AreEqual(10, (int)r);
}


[TestMethod, Ignore]
public void ScanFunctionGraphMode()
{
tf.compat.v1.disable_eager_execution();

Func<Tensor, Tensor, Tensor> fn = (prev, current) => tf.add(prev, current);
var input = tf.placeholder(TF_DataType.TF_FLOAT, new TensorShape(6));
var scan = tf.scan(fn, input);


Loading…
Cancel
Save