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

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

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

# atleast2d

[common]\
fun [atleast2d](atleast2d.md)(input: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`atleast2d(input: Tensor)`: the `atleast_2d` operator. `input` with leading size-1 dims prepended until rank >= 2 (see `atleast_1d`). Returns a view (no copy).