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

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

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

# reflectPad

[common]\
fun [reflectPad](reflectPad.md)(input: [Tensor](../Tensor/index.md), pad: [LongArray](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long-array/index.html)): [Tensor](../Tensor/index.md)

`reflectPad(input: Tensor, pad: LongArray)`: the `reflect_pad` operator. `pad` in mirror mode: the padding reflects the tensor across each padded edge. Same `(lo, hi)` pair layout as `constant_pad`. Copies.