Browse Source

ci test

pull/1184/head
Alexander 1 year ago
parent
commit
09d466d697
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      test/TensorFlowNET.UnitTest/Training/BasicLinearModel.cs

+ 3
- 1
test/TensorFlowNET.UnitTest/Training/BasicLinearModel.cs View File

@@ -15,7 +15,9 @@ namespace TensorFlowNET.UnitTest.Training
[TestMethod] [TestMethod]
public void LinearRegression() public void LinearRegression()
{ {
tf.Graph().as_default();
var graph = tf.Graph().as_default();
var sess = new Session(graph);
sess.as_default();


// Initialize the weights to `5.0` and the bias to `0.0` // Initialize the weights to `5.0` and the bias to `0.0`
// In practice, these should be initialized to random values (for example, with `tf.random.normal`) // In practice, these should be initialized to random values (for example, with `tf.random.normal`)


Loading…
Cancel
Save