Python:"The 'axis' parameter must be an instance of varray.axis" - Python:"The 'axis' parameter must be an instance of varray.axis" - 2026.1 简体中文 - UG1864

Vitis 功能仿真用户指南 (UG1864)

Document_ID
UG1864
Release_Date
2026-06-23
Version
2026.1 简体中文

您向 axis 参数传递的并非 varray.axis 对象:

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

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