1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// TPU Backend Implementation
//
// This module provides the core TPU backend implementation for executing
// optimized computations on Google Cloud TPUs and compatible hardware.
//
// Split into focused submodules (originally a single ~2200-line file):
// - `types`: data-only descriptors, task/program/statistics structs.
// - `device_manager`: TPU device enumeration and health/utilization tracking.
// - `buffer`: the typed `TPUBuffer` data container.
// - `execution`: the execution engine/scheduler and CPU-reference task executor.
// - `memory`: per-device memory pools and garbage-collection bookkeeping.
// - `profiling`: runtime profiler, error handler, and performance monitor.
// - `backend`: `TPUBackend`, the top-level compile/execute/profile orchestrator.
// - `serialization`: the reference tensor codec and program-binary codec.
// - `device_defaults`: derived (non-hardcoded) per-`TPUVersion` defaults.
//
// A handful of fields/functions that were file-private in the original single
// file are `pub(super)` here solely because they are now reached from a
// sibling submodule (mostly the consolidated `tests` module); see each such
// item's doc comment. None of this widens the crate's public API: every type
// that was `pub` at the top of the original file is re-exported below at the
// same `tpu_backend::` path.
pub use TPUBackend;
pub use TPUBuffer;
pub use DeviceManager;
pub use ;
pub use ;
pub use ;
pub use *;