Category: File Formats
Definition
PB (Protocol Buffer) files are TensorFlow's binary format for storing trained models, using Google's efficient serialization protocol for structured data.
How It Works
Protocol Buffers serialize TensorFlow graphs and weights into a compact binary format. The .pb extension typically indicates a frozen graph with both architecture and weights.
The format is language-agnostic and platform-independent, making models portable across different systems.
Why It Matters
PB files enable efficient model deployment in production environments. They're optimized for size and loading speed, crucial for serving models at scale.
TensorFlow Serving and TensorFlow Lite rely heavily on this format for model distribution.
← Back to File Formats | All Terms