Skip to content

Instantly share code, notes, and snippets.

@DanishAmjad12
Created October 16, 2022 14:57
Show Gist options
  • Save DanishAmjad12/aa0453ac1f608984a97afc17e11e4faf to your computer and use it in GitHub Desktop.
Save DanishAmjad12/aa0453ac1f608984a97afc17e11e4faf to your computer and use it in GitHub Desktop.
public class MainActivity extends AppCompatActivity {
Interpreter tflite;
@Override
protected void onCreate(Bundle savedInstanceState) {
super.onCreate(savedInstanceState);
setContentView(R.layout.activity_main);
try {
tflite = new Interpreter(loadFile());
}catch (Exception ex){
ex.printStackTrace();
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment