admin管理员组文章数量:1395012
I am working on a kotlin multiplatform project targeting iOS & Android, and using this amazing library Multik.
implementation ".jetbrains.kotlinx:multik-core:0.2.3"
implementation ".jetbrains.kotlinx:multik-default:0.2.3"
But I wants to access some .npy/.pkl files(for .pkl I am less interested).
for Jvm I can access like this
fun returnT(filePath: String): NDArray<Int, D2> {
val filePath = Path(filePath)
val array = Multik.readNPY<Long, D2>(filePath) // Load as Long
return array.map { it.toInt() }.asType<Int>() // Convert to Int
}
jvm library
val androidMain by getting {
dependencies {
implementation(libs.multik.core.jvm)
implementation(".jetbrains.kotlinx:kotlinx-coroutines-android:1.7.1")
}
}
so my question is can I access the .npy file in iOS as well?
本文标签: Can we access npy files in kotlin multiplatform iOS moduleStack Overflow
版权声明:本文标题:Can we access .npy files in kotlin multiplatform iOS module? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744109651a2591231.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论