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

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

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

# mm

[common]\
fun [mm](mm.md)(input: [Tensor](../Tensor/index.md), other: [Tensor](../Tensor/index.md), bias: [Tensor](../Tensor/index.md)? = null, activation: [Activation](../Activation/index.md)? = null): [Tensor](../Tensor/index.md)

`mm(input: Tensor, other: Tensor, bias: Tensor? = null, activation: Activation? = null)`: the `mm` operator. Matrix multiply of two rank-2 tensors, with an optional fused bias and activation epilogue. `a [M, K] x b [K, N] -> [M, N]`. Inputs must be rank-2 (use `bmm` for batched operands, `matmul` for the broadcasting general form).