Solved by dzhulgakov in post #2 
              
              
                Most likely you’re trying to return a quantized tensor (we should improve the error message  ). We don’t have Java binding for quantized tensor yet. You can try to dequantize the tensor within your model (something like result.dequantize()) or return individual components of the tensor (result.int_r…