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

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

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

# maskedSelect

[common]\
fun [maskedSelect](maskedSelect.md)(input: [Tensor](../Tensor/index.md), mask: [Tensor](../Tensor/index.md)): [Tensor](../Tensor/index.md)

`maskedSelect(input: Tensor, mask: Tensor)`: the `masked_select` operator. The elements of `input` where `mask` is true, as a 1-D tensor. The output LENGTH is data-dependent (the number of true entries); under tracing it carries a data-dependent extent. `mask` is Bool and broadcasts to `input`'s shape.