BAEL-20537: Migrate tensorflow-java module to the com.baeldung package

This commit is contained in:
Krzysiek
2019-12-24 13:08:05 +01:00
parent e77e9a26d9
commit 861195180f
3 changed files with 3 additions and 3 deletions

View File

@@ -0,0 +1,21 @@
package com.baeldung.tensorflow;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.Test;
import org.tensorflow.Graph;
public class TensorflowGraphUnitTest {
@Test
public void givenTensorflowGraphWhenRunInSessionReturnsExpectedResult() {
Graph graph = TensorflowGraph.createGraph();
Object result = TensorflowGraph.runGraph(graph, 3.0, 6.0);
assertEquals(21.0, result);
System.out.println(result);
graph.close();
}
}