predict - 2023.2 English

Vitis Libraries

Release Date
2023-12-20
Version
2023.2 English
void predict (
    hls::stream <MType> opStrm [D],
    hls::stream <bool>& eOpStrm,
    ap_uint <32> cols,
    ap_uint <32> classNum,
    hls::stream <ap_uint <32>>& retStrm,
    hls::stream <bool>& eRetStrm
    )

classification function of logistic regression

Parameters:

opStrm feature input streams. To get a vector of L features, opStrm will be read (L + D - 1) / D times. Feature 0 to D-1 will be read from opStrm[0] to opStrm[D-1] at the first time. Then feature D to 2*D - 1. The last round will readin fake data if L is not divisiable by D. These data won’t be used, just to allign D streams.
eOpStrm End flag of opStrm.
cols Feature numbers
classNum Number of classes.
retStrm result stream of classification.
eRetStrm Endflag of retStrm.