Skip to main content

TensorSpec

dim_names (property)

(self) -> list[str]

dims (property)

(self) -> list[int]

dtype (property)

(self) -> clika_runtime._core.DataType

kDynamicDim (property)

(arg: object, /) -> int

name (property)

(self) -> str

optional (property)

(self) -> bool

__init__

__init____init__(self) -> None

init(self) -> None init(self, name: str, dtype: clika_runtime._core.DataType, dims: collections.abc.Sequence[int], optional: bool = False, dim_names: collections.abc.Sequence[str] = []) -> None

Overloaded function.

  1. __init__(self) -> None

  2. __init__(self, name: str, dtype: clika_runtime._core.DataType, dims: collections.abc.Sequence[int], optional: bool = False, dim_names: collections.abc.Sequence[str] = []) -> None

An input/output slot: dims entries of -1 are dynamic; a dim_names entry names a dynamic dim so slots sharing the name share the size.