File tree 2 files changed +13
-38
lines changed
tensorflow-core-api/src/test/java/org/tensorflow/c_api
2 files changed +13
-38
lines changed Original file line number Diff line number Diff line change 13
13
limitations under the License.
14
14
==============================================================================*/
15
15
16
- package org .tensorflow .examples ;
16
+ package org .tensorflow .c_api ;
17
17
18
- import org .bytedeco .javacpp .*;
19
- import org .tensorflow .c_api .*;
20
- import static org .tensorflow .c_api .global .tensorflow .*;
18
+ import static org .junit .Assert .assertTrue ;
19
+ import static org .tensorflow .c_api .global .tensorflow .TF_Version ;
21
20
22
- public class HelloWorld {
23
- public static void main (String [] args ) throws Exception {
24
- System .out .println ("Running with TensorFlow " + TF_Version ().getString ());
21
+ import org .junit .Test ;
22
+ import org .junit .runner .RunWith ;
23
+ import org .junit .runners .JUnit4 ;
24
+
25
+ @ RunWith (JUnit4 .class )
26
+ public class HelloWorldTest {
27
+
28
+ @ Test
29
+ public void getVersion () {
30
+ assertTrue (TF_Version ().getString ().length () > 0 );
25
31
}
26
32
}
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments