TVM
TVM Key features and brief samples.
File f = new File ("path/to/your/model.pb");
INDArray x = Nd4j.scalar(1.0f).reshape(1,1);
TvmRunner tvmRunner = TvmRunner.builder()
.modelUri(f.getAbsolutePath())
.build();
Map<String,INDArray> inputs = new LinkedHashMap<>();
inputs.put("x",x);
Map<String, INDArray> exec = tvmRunner.exec(inputs);
INDArray z = exec.get("0");<dependency>
<groupId>org.nd4j</groupId>
<artifactId>nd4j-tvm</groupId>
<version>${nd4j.version}</version>
</dependency>Was this helpful?