文件名称:go-tflite:绑定TensorFlow Lite
文件大小:37.48MB
文件格式:ZIP
更新时间:2024-06-03 04:52:56
go golang deep-learning tensorflow-lite JupyterNotebook
轻铁 绑定TensorFlow Lite 用法 model := tflite . NewModelFromFile ( "sin_model.tflite" ) if model == nil { log . Fatal ( "cannot load model" ) } defer model . Delete () options := tflite . NewInterpreterOptions () defer options . Delete () interpreter := tflite . NewInterpreter ( model , options ) defer interpreter . Delete () interpreter . AllocateTensors () v := float64 ( 1.2 ) * math . Pi / 180.0 inp