compute.tensor · function ·

TensorBroadcastDimensions

Tensor broadcast dimensions.

computecompute.tensorcpufunctionsource-exampletensoryeho

Represent tensor shapes, layouts, and numerical storage contracts.

external TensorBroadcastDimensions(list of int left, list of int right) returns list of int

Status: source-declared

Parameters

list of int left
Supply left as list of int.
list of int right
Supply right as list of int.

Use TensorBroadcastDimensions

A complete small caller. Values are illustrative; check the returned result and package requirements before connecting live resources.

cpu · source-example · type checked

using compute.tensor

// Represent tensor shapes, layouts, and numerical storage contracts.
list of int left = []
list of int right = []
list of int result = TensorBroadcastDimensions(left, right)
Console.Log(Text.From(result.count))
project.mech
manifestVersion = "2"
package = "api.example.compute_tensor__tensorbroadcastdimensions"
version = "0.1.0"
languageEdition = "yeho-core-2026.1"

[app]
kind = "headless"

[[dependencies]]
package = "compute.tensor"
version = "0.1.0"
path = "../../../yeho/packages/compute/tensor"

[[dependencies]]
package = "console"
version = "0.1.0"
path = "../../../yeho/packages/console"

[[dependencies]]
package = "diagnostics"
version = "0.1.0"
path = "../../../yeho/packages/diagnostics"
Notes and source

Package presence and a declaration do not establish support on every host. Host services need their platform and lifecycle setup.

yeho/packages/compute/tensor/tensor.yh:1225