Package-level declarations
Functions
Link copied to clipboard
Basic mapper from a simple internal ComputeGraph to the JSON export model. This covers nodes, incoming edges, and minimal tensor metadata for ports.
Link copied to clipboard
fun <T : Any> exportModelToJson(model: T, label: String = model::class.simpleName ?: "model"): SkJsonExport
Facade to export a high-level model or a prebuilt ComputeGraph into the JSON export model.
fun <T : Any> exportModelToJson(model: T, forwardPass: () -> Unit, label: String = model::class.simpleName ?: "model"): SkJsonExport
Fallback overload for models without a direct adapter.
Link copied to clipboard
Serialize this export to a JSON string.
Link copied to clipboard
Write JSON export to a file at the given path. Expect/actual is used for multiplatform file I/O.