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

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

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

# run

[common]\
fun [run](run.md)(inputs: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;

Run with positional inputs (one per [inputNames](inputNames.md) entry, that order); the outputs in [outputNames](outputNames.md) order, fresh tensors the caller owns.

[common]\
fun [run](run.md)(inputs: [Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)&lt;[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), [Tensor](../Tensor/index.md)&gt;): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;

Run with named inputs (every runtime input present, every name an input); the outputs in [outputNames](outputNames.md) order.

[common]\
fun [run](run.md)(inputs: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;, boundOutputs: [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;

Run with positional inputs, landing the results in [boundOutputs](run.md), one caller-preallocated buffer per [outputNames](outputNames.md) entry shaped and typed to accept its result; the answered tensors alias the bound buffers.

[common]\
fun [run](run.md)(inputs: [Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)&lt;[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), [Tensor](../Tensor/index.md)&gt;, boundOutputs: [Map](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-map/index.html)&lt;[String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), [Tensor](../Tensor/index.md)&gt;): [List](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin.collections/-list/index.html)&lt;[Tensor](../Tensor/index.md)&gt;

Run with named inputs and named output bindings (every binding name an output; an unbound output comes back fresh).