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

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

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[Ops](index.md)/[full](full.md)

# full

[common]\
fun [full](full.md)(shape: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), fillValue: [Tensor](../Tensor/index.md), dtype: [DType](../DType/index.md), device: [Placement](../Placement/index.md)? = null, pinnedFor: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

`full(shape: LongArray, fillValue: Tensor, dtype: DType, device: Placement? = null, pinnedFor: Placement? = null)`: the `full` operator. A new tensor of the given shape with every element set to `fill_value`. Each `shape` extent is an int literal or a 0-D integer Tensor (traces symbolically). `fill_value` is a scalar literal or a tensor: a bool keeps Bool kind, an integer keeps its integer-ness across the boundary and stays exact past 2^53, and a tensor fills every element from its values (a 0-D tensor, or one broadcastable to `shape`), the same write as `fill_` on an `empty` tensor in one kernel. `Tensor::full` is the literal-only form.

[common]\
fun [full](full.md)(shape: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html), fillValue: [Double](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-double/index.html), dtype: [DType](../DType/index.md), device: [Placement](../Placement/index.md)? = null, pinnedFor: [Placement](../Placement/index.md)? = null): [Tensor](../Tensor/index.md)

`full(shape: LongArray, fillValue: Double, dtype: DType, device: Placement? = null, pinnedFor: Placement? = null)`: the number form of `full`, `fillValue` as a scalar.