Java client for RedisAI
<dependencies>
<dependency>
<groupId>com.redislabs</groupId>
<artifactId>jredisai</artifactId>
<version>0.6.0</version>
</dependency>
</dependencies>
<repositories>
<repository>
<id>snapshots-repo</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
</repository>
</repositories>
and
<dependencies>
<dependency>
<groupId>com.redislabs</groupId>
<artifactId>jRedisAI</artifactId>
<version>0.7.0-SNAPSHOT</version>
</dependency>
</dependencies>
RedisAI client = new RedisAI("localhost", 6379);
client.setModel("model", Backend.TF, Device.CPU, new String[] {"a", "b"}, new String[] {"mul"}, "graph.pb");
client.setTensor("a", new float[] {2, 3}, new int[]{2});
client.setTensor("b", new float[] {2, 3}, new int[]{2});
client.runModel("model", new String[] {"a", "b"}, new String[] {"c"});