llvm::tensorValueToString

Format a tensor buffer as a string for debugging.

Synopsis

Declared in <llvm/Analysis/TensorSpec.h>

std::string
tensorValueToString(
    char const* Buffer,
    TensorSpec const& Spec);

Return Value

Human-readable string representation of the tensor contents.

Parameters

NameDescription
BufferContiguous bytes holding the tensor values.
SpecSpecification describing the layout and element type of Buffer.