Skip to content

Commit

Permalink
ci test
Browse files Browse the repository at this point in the history
  • Loading branch information
novikov-alexander committed Nov 10, 2023
1 parent 2cb5fd6 commit 09d466d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/TensorFlowNET.UnitTest/Training/BasicLinearModel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,9 @@ public class BasicLinearModel
[TestMethod]
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`
// In practice, these should be initialized to random values (for example, with `tf.random.normal`)
Expand Down

0 comments on commit 09d466d

Please sign in to comment.