Formats

Capability matrix

FormatInline weights ( weights)External weightsSubgraph inliningMulti-subgraph
ONNXyes - parseOnnx populates graph.weights from initializer payloadsnot loadedyes - If / Loop / Scan bodies inlined with prefixed names, depth ≤ 4n/a
TFLiteyes - parseTflite exposes the buffer table via graph.weightsnot loadednofirst subgraph only - secondary subgraphs (If / While bodies) are not yet inlined
Kerasno - .weights.h5 lives outside the .keras archive and is not readnot loadedn/an/a
TorchScriptno - bytecode does not carry tensor payloadsnot loadedn/an/a
ExecuTorchno - constant buffers are not surfacednot loadedn/aonly first execution plan
SavedModel (saved_model.pb)no inline payload; Const shape/dtype folded into initializersyes - TF2 checkpoint pair via loadSavedModelWeights + attachCheckpointToGraphyes - StatefulPartitionedCall / PartitionedCall function bodies inlinedn/a
SavedModel (keras_metadata.pb)nonot loadedn/an/a

All parsers set ModelGraph.fileSizeBytes. The renderer’s weight panel uses it to gate decoding for files larger than 20 MB.