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

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

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

# upsampleBilinear2d

[common]\
fun [upsampleBilinear2d](upsampleBilinear2d.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)

`upsampleBilinear2d(input: Tensor, sizes: LongArray = longArrayOf(), scaleFactors: LongArray = longArrayOf(), alignCorners: Boolean = false)`: the `upsample_bilinear2d` operator. 2-D bilinear resize. Exactly one of `sizes` (target extents) / `scale_factors` (multipliers) is given; entries are literals or 0-D tensors (tensor entries trace symbolically). Input is channels-last.