Using Pytorch Android under Kotlin

Can I use Kotlin for that purpose or it’s possible only with Java?

@David_Reiss - knows better. We do actually support Kotlin… :slight_smile:

Yep. All Java code is fairly easy to use from Kotlin: https://kotlinlang.org/docs/reference/java-interop.html . That includes the PyTorch Java bindings. We’ve tested it out briefly, and they seem to work fine, so let us know if you run into any trouble!

1 Like