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:260
Build one tensor literal from one nested literal value.
Parameters
-
expr โ Type: astx.Literal
-
target_type โ Type: astx.DataType
-
context โ Type: str
Returns
Type: astx.TensorLiteral