finalize

fun finalize(inputTensorIds: Set<String> = emptySet(), embedConstants: Boolean = true)(source)

Synthesize placeholder nodes for tensor inputs that had no known producer.

Parameters

inputTensorIds

Tensor IDs that should always become function arguments.

embedConstants

If true, resolved tensors with float data are embedded as weight constant nodes. If false, all unresolved tensors become lightweight input placeholders (useful for large models where embedding weights would OOM).