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

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

//[clika-runtime](../../../index.md)/[io.clika.runtime](../index.md)/[TensorSpec](index.md)/[mergeFrom](mergeFrom.md)

# mergeFrom

[common]\
fun [mergeFrom](mergeFrom.md)(other: [TensorSpec](index.md)): [TensorSpec](index.md)

This spec widened by another observation of the same slot: a dim dynamic on either side stays dynamic, differing extents become dynamic, a rank clash makes every dim dynamic at the larger rank; a dim name is kept where the two agree or one is unnamed; the name and [optional](optional.md) are this spec's (the name adopted from [other](mergeFrom.md) when empty). Fails when the dtypes differ.