---
title: "clika_runtime.ops"
sidebar_label: "clika_runtime.ops"
description: "The clika_runtime.ops module, introspected from the installed wheel."
---

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

The operators, as functions: ``ops.add(x, y)``, ``ops.matmul(a, b)``,
``ops.softmax(x, dim=-1)``.

Every operator takes its tensors first and returns a new tensor (a
trailing-underscore twin, ``ops.add_``, writes through its first tensor).
A trailing-underscore twin applied to a layer's parameter or buffer
(``ops.mul_(layer.weight, 2.0)``) reaches the layer's next forward, as the
tensor's own method form (``layer.weight.mul_(2.0)``) does.
A mode argument takes a name (``ops.gelu(x, approximate="tanh")``) or the
enum value the module carries (``ops.GeluMode.Tanh``); the value classes
(``ops.ScalarOrTensor``, ``ops.IndexSlice``, ...) name the argument shapes
the operators accept. ``__all__`` lists every name.

| Name | Kind |
| --- | --- |
| [`GeluMode`](./GeluMode.md) | class |
| [`GridSampleMode`](./GridSampleMode.md) | class |
| [`GridSamplePaddingMode`](./GridSamplePaddingMode.md) | class |
| [`HashLaneAlgo`](./HashLaneAlgo.md) | class |
| [`HashTensorMode`](./HashTensorMode.md) | class |
| [`IndexBound`](./IndexBound.md) | class |
| [`IndexEntry`](./IndexEntry.md) | class |
| [`IndexSlice`](./IndexSlice.md) | class |
| [`InterpMode`](./InterpMode.md) | class |
| [`MeshgridIndexing`](./MeshgridIndexing.md) | class |
| [`ModMode`](./ModMode.md) | class |
| [`MoeRouting`](./MoeRouting.md) | class |
| [`PixelShuffleMode`](./PixelShuffleMode.md) | class |
| [`QComputeMode`](./QComputeMode.md) | class |
| [`QuantileInterp`](./QuantileInterp.md) | class |
| [`Reduction`](./Reduction.md) | class |
| [`RopeScaling`](./RopeScaling.md) | class |
| [`RotaryMode`](./RotaryMode.md) | class |
| [`RoundingMode`](./RoundingMode.md) | class |
| [`Scalar`](./Scalar.md) | class |
| [`ScalarOrTensor`](./ScalarOrTensor.md) | class |
| [`ScatterReduceMode`](./ScatterReduceMode.md) | class |
| [`StreamOrDevice`](./StreamOrDevice.md) | class |
| [`SwigluFusion`](./SwigluFusion.md) | class |
| [functions](./functions.md) | module functions |