I trained an NMTmodel which takes string as input and returns string as output. My models returns Tensor and a string in its output.
When I convert the iValue to string using toStr() i get garbage values instead of the string.
final IValue [] output=module.forward(IValue.from(word)).toTuple();
String pred= output[1].toStr()
I trained an NMTmodel which takes string as input and returns string as output. My models returns Tensor and a string in its output. When I convert the iValue to string using toStr() i get garbage values instead of the string. final IValue [] output=module.forward(IValue.from(word)).toTuple(); String pred= output[1].toStr()
Please help me with this issue