API reference
python:aix:aix.tensor.build_literal_from_literal
function build_literal_from_literal
build_literal_from_literal(expr: astx.Literal, target_type: astx.DataType, *, context: str) -> astx.TensorLiteral
Source: packages/aix/src/aix/tensor.py:234
Build one tensor literal from one nested literal value.
Parameters
-
expr โ Expression to process.; Type: astx.Literal
-
target_type โ Destination type for the conversion.; Type: astx.DataType
-
context โ Context for the operation.; Type: str
Returns
Constructed one tensor literal from one nested literal value.; Type: astx.TensorLiteral