compute.tensor · function ·
CreateTensorSerializationMetadata
Create tensor serialization metadata from the supplied values.
Represent tensor shapes, layouts, and numerical storage contracts.
external CreateTensorSerializationMetadata(tensorShape shape, text byteOrder, text payloadEncoding) returns tensorSerializationMetadataStatus: source-declared
Parameters
tensorShape shape- Supply shape as tensorShape.
text byteOrder- Supply byte order as text.
text payloadEncoding- Supply payload encoding as text.
Use CreateTensorSerializationMetadata
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.
tensorShape shape = tensorShape("element Type", [])
text byteOrder = "byte Order"
text payloadEncoding = "payload Encoding"
tensorSerializationMetadata result = CreateTensorSerializationMetadata(shape, byteOrder, payloadEncoding)
Console.Log("Inspect result in your debugger")
project.mech
manifestVersion = "2"
package = "api.example.compute_tensor__createtensorserializationmetadata"
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/contracts.yh:398