Train and deploy TensorFlow models in Go
summary
Shows that a TensorFlow SavedModel can export training step as well as inference: a tf.function-wrapped learn() signature (forward, gradient tape, optimizer, global step) is saved and invoked from Go via the TensorFlow C API. Uses a 3-axis accelerometer dataset with six classes, a 3→32→6 dense model, and a forked tensorflow-2.4-go + tfgo simplified API to run training from Go; observed the loss decreases during live runs. Notes cgo context-switch cost and demos an incremental learning loop using Go channels.
AI-written summary · about
chapters (12)
- 0:00Introduction and welcome
- 2:01Speaker introduction
- 4:14ML workflow overview
- 9:15SavedModel fundamentals
- 16:40TensorFlow graphs in Go
- 27:19Go bindings for TensorFlow
- 34:06Simplified Go API with tfgo
- 37:44Deploying saved models in Go
- 41:42Practical Go code demo
- 50:58Incremental learning simulation
- 53:31Key takeaways
- 54:36Q&A session
