---
title: "ClikaRT::nn::QEmbeddingOptions"
sidebar_label: "QEmbeddingOptions"
description: "Settings of QEmbedding: chain the setters, or assign the fields."
---

<!-- Generated by tools/doxygen2mdx from Doxygen XML. Do not edit. -->

<span class="api-kind api-kind--struct">struct</span>

**Header:** `ClikaRT/nn/qembedding.h`

Settings of [`QEmbedding`](./QEmbedding.md): chain the setters, or assign the fields.

## Member functions

### dtype(DataType) {#dtype}

<div class="api-signature">

[`QEmbeddingOptions`](./QEmbeddingOptions.md)`&` **`dtype`**([`DataType`](../../index.md#DataType) `v`)

</div>

Sets [`dtype`](../dtype/index.md), the dtype of the gathered rows.

<div class="api-declared">

Declared in `ClikaRT/nn/qembedding.h`, line 43

</div>

### device(Device) {#device}

<div class="api-signature">

[`QEmbeddingOptions`](./QEmbeddingOptions.md)`&` **`device`**([`Device`](../Device.md) `v`)

</div>

Sets [`device`](../device-namespace/index.md), the placement of the table.

<div class="api-declared">

Declared in `ClikaRT/nn/qembedding.h`, line 45

</div>

### dtype() {#dtype-2}

<div class="api-signature">

`const std::optional<`[`DataType`](../../index.md#DataType)`>&` **`dtype`**() `const`

</div>

Reads [`dtype`](../dtype/index.md).

<div class="api-declared">

Declared in `ClikaRT/nn/qembedding.h`, line 48

</div>

### device() {#device-2}

<div class="api-signature">

`const std::optional<`[`Device`](../Device.md)`>&` **`device`**() `const`

</div>

Reads [`device`](../device-namespace/index.md).

<div class="api-declared">

Declared in `ClikaRT/nn/qembedding.h`, line 50

</div>

## Data members

### dtype\_ {#dtype_}

<div class="api-signature">

`std::optional<`[`DataType`](../../index.md#DataType)`>` **`dtype_`**

</div>

The dtype the gathered rows decode to, one of Float32 / Float16 / BFloat16; unset (the default) selects the scheme's own float target. The packed codes are never cast.

<div class="api-declared">

Declared in `ClikaRT/nn/qembedding.h`, line 55

</div>

### device\_ {#device_}

<div class="api-signature">

`std::optional<`[`Device`](../Device.md)`>` **`device_`**

</div>

[Where](./Where.md) the table lives; unset (the default) is the weight's own placement for the from-weight `make`, CPU for the declared form.

<div class="api-declared">

Declared in `ClikaRT/nn/qembedding.h`, line 58

</div>
