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

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

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

# upsampleLinear1d

[common]\
fun [upsampleLinear1d](upsampleLinear1d.md)(input: [Tensor](../Tensor/index.md), sizes: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html) = longArrayOf(), scaleFactors: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html) = longArrayOf(), alignCorners: [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) = false): [Tensor](../Tensor/index.md)

`upsampleLinear1d(input: Tensor, sizes: LongArray = longArrayOf(), scaleFactors: LongArray = longArrayOf(), alignCorners: Boolean = false)`: the `upsample_linear1d` operator. `interpolate` with `InterpMode::Linear` (linear / bilinear / trilinear by input rank) or `InterpMode::Bicubic`.