---
title: "finalizeGraph"
sidebar_label: "finalizeGraph"
description: "Kotlin binding reference: finalizeGraph."
---

<!-- Generated by tools/api_reference/generate_api_docs.py. Do not edit. -->

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[ModelGraph](index.md)/[finalizeGraph](finalizeGraph.md)

# finalizeGraph

[common]\
fun [finalizeGraph](finalizeGraph.md)()

Finalize the graph for serving: place it on its device, pack the weights into their kernel layouts, absorb the constants and plan the execution order. A second call changes nothing. (The name carries the word `Graph` because `finalize` alone is the JVM's own method.)