@@ -32,15 +32,15 @@ public void testSetModel() {
3232// client.getModel("model");
3333 }
3434
35- @ Test
36- public void testRunModel () {
37- ClassLoader classLoader = getClass ().getClassLoader ();
38- String model = classLoader .getResource ("graph.pb" ).getFile ();
39- client .setModel ("model" , Backend .TF , Device .CPU , new String [] {"input" }, new String [] {"target" }, model );
40- client .setTensor ("input" , new int []{1 }, new int [] {1 });
41-
42- Assert .assertTrue (client .runModel ("model" , new String [] {"input" }, new String [] {"target" }));
43- }
35+ // @Test
36+ // public void testRunModel() {
37+ // ClassLoader classLoader = getClass().getClassLoader();
38+ // String model = classLoader.getResource("graph.pb").getFile();
39+ // client.setModel("model", Backend.TF, Device.CPU, new String[] {"input"}, new String[] {"target"}, model);
40+ // client.setTensor("input", new int[]{1}, new int[] {1});
41+ //
42+ // Assert.assertTrue(client.runModel("model", new String[] {"input"}, new String[] {"target"}));
43+ // }
4444
4545 @ Test
4646 public void testSeScriptFile () {
@@ -57,13 +57,13 @@ public void testSeScript() {
5757// client.getScript("script");
5858 }
5959
60- @ Test
61- public void testRunScript () {
62- ClassLoader classLoader = getClass ().getClassLoader ();
63- String script = classLoader .getResource ("script.txt" ).getFile ();
64- client .setScriptFile ("script" , Device .CPU , script );
65- client .setTensor ("input" , new int []{1 }, new int [] {1 });
66-
67- Assert .assertTrue (client .runScript ("model" , new String [] {"input" }, new String [] {"target" }));
68- }
60+ // @Test
61+ // public void testRunScript() {
62+ // ClassLoader classLoader = getClass().getClassLoader();
63+ // String script = classLoader.getResource("script.txt").getFile();
64+ // client.setScriptFile("script", Device.CPU, script);
65+ // client.setTensor("input", new int[]{1}, new int[] {1});
66+ //
67+ // Assert.assertTrue(client.runScript("model", new String[] {"input"}, new String[] {"target"}));
68+ // }
6969}
0 commit comments