Browse Source

Fix expected result from TFE_Execute in test

tags/v0.20
Sam Harwell Haiping 5 years ago
parent
commit
6726cbde55
1 changed files with 2 additions and 4 deletions
  1. +2
    -4
      test/TensorFlowNET.UnitTest/NativeAPI/Eager/CApi.Eager.OpInferMixedTypeInputListAttrs.cs

+ 2
- 4
test/TensorFlowNET.UnitTest/NativeAPI/Eager/CApi.Eager.OpInferMixedTypeInputListAttrs.cs View File

@@ -42,13 +42,11 @@ namespace TensorFlowNET.UnitTest.NativeAPI
//EXPECT_EQ(attr_found->second.list().type(1), tensorflow::DataType::DT_FLOAT);
//EXPECT_EQ(attr_found->second.list().type(2), tensorflow::DataType::DT_INT32);

var retvals = new SafeTensorHandleHandle[1];
var retvals = new SafeTensorHandleHandle[0];
int num_retvals;
TFE_Execute(assertOp, retvals, out num_retvals, status);
EXPECT_EQ(TF_OK, TF_GetCode(status), TF_Message(status));
EXPECT_EQ(1, num_retvals);

retvals[0].Dispose();
EXPECT_EQ(0, num_retvals);
}
}
}


Loading…
Cancel
Save