Skip to content
This repository has been archived by the owner on Aug 28, 2024. It is now read-only.

Getting a garbage value tostr() #317

Open
areebbashir opened this issue May 2, 2023 · 1 comment
Open

Getting a garbage value tostr() #317

areebbashir opened this issue May 2, 2023 · 1 comment

Comments

@areebbashir
Copy link

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

@NeighborhoodCoding
Copy link

You can't do toSTR() in JAVA, can you? That feature is only supported in Python.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants