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

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

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

# Companion

[common]\
object [Companion](index.md)

## Properties

| Name | Summary |
|---|---|
| [DYNAMIC_DIM](DYNAMIC_DIM.md) | [common]<br>const val [DYNAMIC_DIM](DYNAMIC_DIM.md): [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)<br>The dim value that resolves at run time. |

## Functions

| Name | Summary |
|---|---|
| [fromTensor](fromTensor.md) | [common]<br>fun [fromTensor](fromTensor.md)(tensor: [Tensor](../../Tensor/index.md), name: [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) = &quot;&quot;): [TensorSpec](../index.md)<br>The spec a live tensor observes: its dtype and concrete dims (a symbolic dim reads as [DYNAMIC_DIM](DYNAMIC_DIM.md)). |