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

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

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[PhaseContext](index.md)/[setOutput](setOutput.md)

# setOutput

[common]\
fun [setOutput](setOutput.md)(name: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html), tensor: [Tensor](../Tensor/index.md))

Set the phase's output named [name](setOutput.md) to [tensor](setOutput.md) (the body keeps its own handle to close).