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

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

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

# embedding

[common]\
fun [embedding](embedding.md)(indices: [Tensor](../Tensor/index.md), weight: [Tensor](../Tensor/index.md), bias: [Tensor](../Tensor/index.md)? = null, activation: [Activation](../Activation/index.md)? = null): [Tensor](../Tensor/index.md)

`embedding(indices: Tensor, weight: Tensor, bias: Tensor? = null, activation: Activation? = null)`: the `embedding` operator. Embedding lookup: gathers rows of `weight` by `indices`, with an optional bias + activation epilogue.