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

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

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

# atleast1d

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

`atleast1d(input: Tensor)`: the `atleast_1d` operator. `input` with leading size-1 dims prepended until rank >= 1; a higher-rank input passes through unchanged. Returns a VIEW sharing `input`'s storage (no copy).