Skip to content

Instantly share code, notes, and snippets.

@ksdkamesh99
Created July 27, 2020 13:51
Show Gist options
  • Save ksdkamesh99/44bfdb79d3c6f133c7996d00ec28ae11 to your computer and use it in GitHub Desktop.
Save ksdkamesh99/44bfdb79d3c6f133c7996d00ec28ae11 to your computer and use it in GitHub Desktop.
private float doInference(String inputString) {
float[] inputVal=new float[1];
inputVal[0]=Float.parseFloat(inputString);
float[][] output=new float[1][1];
tflite.run(inputVal,output);
return output[0][0];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment