Open bsbodden opened 3 years ago
Thanks, @bsbodden we will check this
Thanks @sazzad16 ....
For posterity, the answer is:
// AI.TENSORSET iris:in FLOAT 2 4 VALUES 5.0 3.4 1.6 0.4 6.0 2.2 5.0 1.5
ai.setTensor("iris:in", new double[][] {{5.0, 3.4, 1.6, 0.4}, {6.0, 2.2, 5.0, 1.5}}, new int[]{2, 4});
In this branch
https://github.com/redis-developer/redisai-iris/pull/1
I have an updated example of creating a SciKit model, train it, and converting it into a Pytorch's TorchScript model using MS Hummingbird.ml.Here's an example of the converted Torch model working in RedisAI via the CLI:
In JRedisAI I am trying the following:
I get the following
ClassCastException
from theai.setTensor("iris:in", new double[] {5.0, 3.4, 1.6, 0.4, 6.0, 2.2, 5.0, 1.5}, new int[]{2, 4});
line:Any hints on how to write this particular input Tensor would be appreciated. Thanks!