barracuda-release icon indicating copy to clipboard operation
barracuda-release copied to clipboard

Input tensor type

Open taeinkwon opened this issue 4 years ago • 1 comments

Hi,

I am working on my custom model. My custom model takes integer tensor and double tensor and returns double tensor. However, in Barracuda, it seems like only the float type can be fed into the model. For example, when we create a tensor, it only takes a float array. public Tensor(TensorShape s, float[] srcData, string n = "") Do you know how to feed integer tensors and double tensors into the model?

taeinkwon avatar Sep 15 '22 14:09 taeinkwon

I also convert those int and double arrays into float arrays and feed them to the model. However, the output is different from what it is supposed to be.

I've also added my model here in case you want to investigate. model

Thanks!

taeinkwon avatar Sep 16 '22 13:09 taeinkwon