.tflite
.tflite
import org.tensorflow.lite.Interpreter
import org.tensorflow.lite.experimental.GpuDelegate
// Initialize interpreter with GPU delegate
protected val delegate = GpuDelegate()
protected var options = (Interpreter.Options()).addDelegate(delegate)
protected var interpreter = Interpreter(model, options)
// Run inference
while (true)
{
writeToInput(input)
interpreter.run(input, output)
readFromOutput(output)
}
// Clean up
delegate.close()
✓
✓
✓
✓
.tflite
•
•
.tflite
✓
✓
✓
✓
.tflite
J
CoroutineScope(Dispatchers.Main).launch {
var data = ""
CoroutineScope(Dispatchers.Default).async {
// Background Thread에서 모델 추론 실행
}.await()
// 모델 추론 결과 UI 업데이트
}
.tflite
.tflite
•
•
•
•
.tflite
.tflite
✓
✓
•
•
•
✓
✓
✓
✓
✓
✓
✓
✓
✓
✓
[D2 Campus] Tech meetup (주제: Android) 모바일 머신러닝 [열일한 내 거북목을 부탁해!]
[D2 Campus] Tech meetup (주제: Android) 모바일 머신러닝 [열일한 내 거북목을 부탁해!]

[D2 Campus] Tech meetup (주제: Android) 모바일 머신러닝 [열일한 내 거북목을 부탁해!]