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

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

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

# expandAs

[common]\
fun [expandAs](expandAs.md)(input: [Tensor](../Tensor/index.md), other: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`expandAs(input: Tensor, other: Tensor)`: the `expand_as` operator. `expand` to `other`'s shape; `other` supplies extents only; its data is never read. Same broadcasting rules and view semantics as `expand`.