Google rates a single Edge TPU at 4 trillion operations per second (TOPS), using 0.5 watts per TOPS. That rate is not your pipeline’s rate: with the USB Accelerator, performance also depends on the host CPU and USB speed. The frame rate you actually get also depends on whether the model is fully int8 and compiles to the TPU in one piece, which operations fall back to the CPU, how long the Pi’s CPU spends preparing each frame, and the USB speed. We read this as the same hardware acceleration discord across CPU and accelerator stages seen in GPU video pipelines, scaled down to a single-board computer: a fast TPU stage waiting on a slow CPU stage. Profile the handoff first. Whether you need more accelerator is a decision for afterwards.
Why an Edge TPU on a Pi Falls Short of Its Datasheet Rate
The 4 TOPS figure is a theoretical peak, and measured throughput is significantly below it. A 2021 bottleneck analysis of the Google Edge TPU across 24 Google edge models found it used only 24% of the peak throughput the researchers defined for it, averaged across those models, and less than 1% for LSTM and Transducer models in the worst case. CNN and RCNN models did better in that study but still averaged only 40.7% of peak utilisation. The same analysis found the Edge TPU reached only 37% of its theoretical peak energy efficiency on average.
The researchers name the memory system as a large energy and performance bottleneck. Many edge models cannot fit all their parameters in the on-chip buffers, so they generate heavy off-chip memory traffic, and the resulting bandwidth limit leaves the processing elements idle. A 2025 study of Edge TPUs on PCIe reached the same conclusion: performance was far below the 4 TOPS peak and execution was memory-bound for the fully-connected and convolution layers tested.
Coral’s documentation states that its figures measure model execution only, not the time to process input data such as down-scaling images to fit the input tensor. The same page says that with the USB Accelerator, total performance also depends on the host CPU, the USB speed and other system resources. Those benchmarks ran in C++, and Coral warns that its Python scripts may be slower because of Python overhead.
How Does a Raspberry Pi TPU Work in Practice?
Everything except the compiled part of the model runs on the CPU, and the compiler splits the graph at one point. Here is the full path from camera to result.
The camera module sends raw images over the ribbon cable, a CSI-2 receiver writes them into memory, and the Pi’s image signal processor (ISP) cleans them up and can produce two outputs per frame: a main image and a lower-resolution “lores” image. On a Pi 4 or earlier the lores image must be YUV, while on a Pi 5 it can be RGB or YUV. If a video stream has to be decoded, the AI accelerator does not help with that.
The CPU then converts the frame into the tensor format the model expects, including float32 conversion and normalisation for a float-input model. If the model is quantised internally but takes float inputs, the Edge TPU compiler leaves a quantize op at the start of the graph, and that op runs on the CPU. The host then passes the input to the TPU, which executes the compiled segment before control returns to the CPU. Any operations the compiler could not map run there, followed by post-processing such as decoding detection boxes.
Why the Model Has to Be int8 and Compiled for the Edge TPU
The Edge TPU runs only TensorFlow Lite models that are fully 8-bit quantised and then compiled specifically for it. It also needs tensor sizes and model parameters to be constant at compile time. Coral recommends quantisation-aware training over full-integer post-training quantisation, because it usually gives higher accuracy and supports more operations. A quantised TFLite model that has not been through the Edge TPU compiler still runs on the CPU.
The compile step is where the handoff is fixed. At the first unsupported operation, the compiler splits the graph: the supported part before it becomes a custom op on the Edge TPU, and that operation and everything after it run on the CPU, even if supported operations come later. The compiler partitions only once. Coral warns that the share of operations on the CPU does not map onto the performance cost: even a small CPU fraction can slow inference by an order of magnitude compared with a fully mapped model.
The Sun and Kist survey (2021) reports that roughly half of the operations the Edge TPU supports have known limitations. Among the networks available through tf.keras.applications, it found that only MobileNets map completely to the Edge TPU without filling its SRAM. The compiler log shows which operations were “Mapped to the CPU”, and Coral’s advice is to change the model until fewer operations appear there. We cover the conversion work itself in porting AI inference to a Coral TPU.
Where Each Stage of an Edge TPU Pipeline Runs
| Stage | Runs on | What sets its cost | What to check |
|---|---|---|---|
| Sensor capture and ISP | Camera hardware, ISP | Buffer count, main and lores outputs | Lores format (RGB allowed only on Pi 5) |
| Stream decode (video streams) | CPU or hardware decoder; not the AI accelerator | Resolution and frame rate | CPU decode load |
| Resize, colour convert, normalise | CPU | Input size, float versus int input | Time per frame outside invoke() |
| Input quantize op (float-input models) | CPU | Input tensor size | Compiler log for a leading quantize op |
| Compiled model segment | Edge TPU | On-chip versus streamed parameters | “Off-chip memory used” in the compiler log |
| Ops after the first unsupported op | CPU | Where the split falls | “Mapped to the CPU” entries |
| Post-processing (box decode, filtering) | CPU | Detections per frame | Time per frame after invoke() returns |
Model Size and the 8 MB of On-Chip Memory
Coral’s compiler documentation says the Edge TPU has roughly 8 MB of SRAM for caching parameters, minus a small reserve for the model’s executable. In Coral’s example compiler output, 6.91 MiB is available for parameters. Whatever does not fit is fetched from external memory at run time, which is slower. The 2025 PCIe study shows the result as steps: inference time jumps each time a model outgrows device memory and starts using host memory.
The sources disagree about what happens to the overflow. Two practitioner guides say the parameters that do not fit “fall back to CPU”. Coral’s compiler documentation instead describes them as fetched from external memory at run time. We rely on Coral’s documentation here, since it describes the vendor’s own compiler and its log reports the streamed amount as a separate figure. Either way the model gets slower.
How Does the USB or PCIe Link Between the Pi and a Coral Accelerator Add Latency to Each Inference?
If the model’s weights do not fit on chip, loading them from host memory adds to inference time. The Coral USB Accelerator uses USB 3.0 (USB 3.1 Gen 1) at 5 Gbps. It also works over USB 2.0, which is how it runs on a Raspberry Pi 3. In Gilbert Tanner’s measurements of the same getting-started example, inference took 4.4 ms over USB 3 and 12.5 ms over USB 2. Electromaker’s setup guide gives the practical version of this: use a USB 3.0 port and a certified SuperSpeed cable, because slower connections can severely limit inference performance.
Inference slows when the port runs at USB 2, when parameters stream from host memory, or when the application keeps switching models. That last case matters because the Edge TPU rewrites its parameter cache only when needed, so the first run is always slower and constant model switching adds significant overhead. The 2025 PCIe study, measured on an M.2 module, found the host-to-TPU communication to be a non-negligible bottleneck that should be reduced or avoided.
In Tanner’s runs, the first classification took 11.8 ms because it included loading the model into Edge TPU memory, and later calls settled at about 2.9 ms.
How Is Running a Coral TPU on a Raspberry Pi 5 Different from Running One on a Raspberry Pi 4?
The Pi 5 has a faster CPU for the stages the TPU never touches, and a PCIe connector for the accelerator. Jeff Geerling’s 2023 testing found the Pi 5’s SoC 1.8 to 2.4 times faster than the Pi 4’s on CPU and system benchmarks, with memory access 2 to 4 times faster and overall USB bandwidth doubled thanks to four independent USB buses. On the Pi 5, USB 3.0 runs through the RP1 chip. The Pi 5’s ability to output an RGB lores stream from the ISP can also remove a colour conversion step from the CPU.
The Pi 5’s PCIe connector is a 16-pin FFC carrying a single lane of PCIe Gen 2; signals can run at Gen 3, but Raspberry Pi does not officially support that. The Pi 4 has no external PCIe connector, so USB is the practical way to attach a Coral there. Earlier attempts on the Compute Module 4 failed because of quirks in its PCIe implementation.
Geerling got a PCIe Coral working on a Pi 5, but it needed a few tweaks. He had to disable PCIe ASPM because the Coral is picky about timings, raise the MSI-X interrupt allocation in the device tree, and run PyCoral, which needed Python 3.9, inside Docker because Pi OS Bookworm ships Python 3.11. In his setup the TPU worked at Gen 1, 2 and 3, with a few harmless link errors at Gen 3. On Geerling’s alpha Pi 5 board the Coral kept retraining the link and never worked end to end. The connector also supplies at most 5 W on its 5 V line, which limits how many devices it can power directly. We would treat these as things to verify on your own board and OS image, not as settled behaviour.
An Idle Edge TPU Between Frames Is a Routing Signal
We read a TPU that finishes each inference in milliseconds and then waits for the next frame as underfed, not short of capacity. Frigate’s documentation describes the CPU side of this: its detector CPU metric counts the time spent converting frames into the model’s tensor format and post-processing the output, and that figure can stay high even with a Coral doing detection. The fix the documentation suggests is to change the CPU work: integer-input models such as the Edge TPU’s TFLite models skip the per-frame float32 conversion and normalisation that float-input models need.
In an MLPerf study of the Coral USB Accelerator (Libutti and colleagues, AccML 2020), pre- and post-processing overhead was 1% to 3% at large batch sizes but rose to 10% to 15% at small ones. A 2025 study of Pi 4 inference found batch size 1 was the only viable option because larger batches caused paging. A Pi DIY Lab setup guide reports a Pi 5 with a Coral USB processing a 1080p MobileNet SSD frame in under 15 ms, enough for 30 fps detection when capture and preprocessing are handled efficiently.
We would not add a second accelerator as the first response to low TPU duty cycle. Model segmentation across several Edge TPUs helps when the model does not fit in on-chip memory or when its own throughput is the bottleneck. The 2025 multi-TPU study concludes that the best choice is the smallest number of TPUs that avoids using host memory. If the TPU is idle because the CPU is busy, a second TPU will just sit idle as well. We describe the datacentre version of this pattern in the hidden cost of GPU underutilisation. Production AI cost and latency often improve by profiling and optimising the serving path, without replacing the model.
How Do You Profile a Pi TPU Pipeline to Find Where Preprocessing or Copies Stall the Accelerator?
Profile by stage, starting with the compiled model and working outwards. We hold that profiling comes before optimisation, and that rules of thumb only make sense in the context a profile gives them. On a Pi, that means timing the handoff before deciding to buy anything.
- Read the compiler log. Check how many operations are “Mapped to the CPU” and whether “Off-chip memory used for streaming uncached model parameters” is above zero. Either one slows inference compared with a model that is fully mapped and fully cached on the TPU.
- Time
invoke()on its own, after warm-up. Wrap repeated calls in wall-clock timing and average after the first runs, as the x2q experiments did. Throw away the first call, because it includes loading the model. - Time every other stage the same way. Measure capture wait, decode, resize and conversion, any input quantize, and post-processing per frame. Coral’s benchmarks exclude input processing, so this is the part you have to measure yourself.
- Compare the sum with the frame interval. If
invoke()is a small share of the per-frame time, the pipeline is CPU-bound and the TPU will show idle gaps. - Confirm the link. Check that the accelerator enumerated at SuperSpeed on USB, or that the PCIe link trained at the expected generation, since a slow link inflates every call.
- Measure power against a baseline. Use a USB power meter: record idle draw first and subtract it to isolate inference power, as the 2025 Pi 4 study did.
- Only then consider segmentation or a second TPU. If you do, profile partitions on the same interface and host CPU as production, because Coral warns that the throughput can differ otherwise.
For multi-TPU setups, Coral’s profiling partitioner recompiles the model with different segment lengths until the gap between the fastest and slowest segment falls below a threshold, 1 ms by default.
How Does Balancing the CPU and TPU Stages Change Frames per Second and Power Draw on an Embedded Edge Device?
When the stages run one after another, the frame rate follows the total per-frame time. When they overlap, it follows the slowest stage. Frigate’s documentation gives the arithmetic for the detector alone: 10 ms per inference caps it at about 100 detections per second (1000 ms / 10 ms). Pi DIY Lab reports 5 to 10 ms per inference on a working Edge TPU setup, against 60 to 100 ms for the same quantised model on the CPU. The TPU removes the CPU’s largest stage, so after that the remaining CPU stages set the frame rate. Running capture and preprocessing for frame n+1 while the TPU handles frame n is usually the cheapest frame-rate gain available.
In the AccML 2020 measurements, the Coral idled at about 1 W, peaked around 1.6 W at standard frequency and about 2 W at maximum frequency. Maximum frequency can give up to twice the inference performance, at the cost of more energy and higher operating temperature. Tanner measured 4.4 ms at standard and 3.7 ms at maximum frequency over USB 3. The Sun and Kist survey cites work showing the Edge TPU is more power-efficient than CPUs only when the whole parameter set is deployed on the TPU. The 2025 Pi 4 study adds two cautions. Fixed baseline draw means energy does not always scale with runtime for lightweight tasks. And higher input resolution drove drastic increases in time and power on the Pi alone, while the Coral setup showed moderate increases but still a twofold rise in power.
A balanced pipeline keeps the TPU busy at the rate it was bought for, while the CPU does only the preprocessing the model truly needs: integer input, a lores stream at model resolution, no redundant copies. We would also avoid running the accelerator at maximum frequency when the CPU is the stage holding the pipeline back. If you are weighing the Coral against other USB accelerators, we compare how the Coral and Intel accelerator paths work separately. TechnoLynx takes on this work for IoT and embedded devices through its AI Porting & Deployment Pack, starting with feasibility. The wider stage-boundary logic is in our guide to hardware acceleration discord in video pipelines.
FAQ
Are TPUs ASICs?
Yes. The Edge TPU in the Coral USB Accelerator is a custom ASIC from Google, designed to accelerate quantised TensorFlow Lite models. It handles int8 TensorFlow Lite inference only.