print(kernel.getInputSpec()) print(kernel.getOutputSpec()) Both return a table with per-port Name, DataType, and width information.