Python: "The 'axis' parameter must be an instance of varray.axis" - Python: "The 'axis' parameter must be an instance of varray.axis" - 2026.1 English - UG1864

Vitis Functional Simulation User Guide (UG1864)

Document_ID
UG1864
Release_Date
2026-06-23
Version
2026.1 English

You passed something other than a varray.axis object to the axis parameter:

# Wrong
arr = va.array(data, dtype=va.int32, axis=True)

# Correct
arr = va.array(data, dtype=va.int32, axis=va.axis())