Skip to content

Instantly share code, notes, and snippets.

@the-dagger
Last active August 1, 2018 07:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save the-dagger/b5c82e3d0e513c2ea81814c9a287ae3c to your computer and use it in GitHub Desktop.
Save the-dagger/b5c82e3d0e513c2ea81814c9a287ae3c to your computer and use it in GitHub Desktop.
override fun onCreate(savedInstanceState: Bundle?) {
//...
inputOutputOptions = FirebaseModelInputOutputOptions.Builder()
.setInputFormat(0, FirebaseModelDataType.FLOAT32, intArrayOf(1, 224, 224, 3))
.setOutputFormat(0, FirebaseModelDataType.FLOAT32, intArrayOf(1, 149))
.build()
//...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment