FPGA AI Suite Handbook

ID 863373
Date 12/08/2025
Public
Document Table of Contents

9.3.1.1.2. Input Scale and Shift

Many graphs require that input data be pre-scaled and pre-shifted. These scale and shift operations are supported in the FPGA AI Suite IP if they are sent to the device. Depending on the folding options specified, the method of support differs for the FPGA AI Suite IP. Input preprocessing is not supported for 5D inputs.

When you set the --ffolding-option FPGA AI Suite compiler option to --ffolding-option=1 or --ffolding-option=2 , external modules of the FPGA AI Suite are responsible for replacing the zero padding of the input data with non-zero shift values received as input from the FPGA AI Suite compiler.

When you set the --ffolding-option FPGA AI Suite compiler option to --ffolding-option=0 or --ffolding-option=3 , the scaling and shifting are performed entirely by the FPGA AI Suite IP without any additional support from the host or external modules. If the scale and shift operation is not mapped to the device, then it is typically performed as an operation fused with the conversion to FP16. This fused operation is performed either by a host CPU or by an external hardware block.