Output Shape - Output Shape - 2026.1 English - UG1864

Vitis Functional Simulation User Guide (UG1864)

Document_ID
UG1864
Release_Date
2026-06-23
Version
2026.1 English

run() flattens outputs to 1-D by default. Use the shape= argument to reshape:

out  = kernel.run(din)                          # shape=(-1) -> 1-D
out  = kernel.run(din, shape=(4, 4))            # 2-D
out1, out2 = kernel.run(in1, in2, shape=[(3,), (4,)])  # one per output

The total element count must match the requested shape.