CharlesCNorton
Image-level person classification on EUPE-ViT-B features with no free parameters
e8b8483 | // Zero-parameter person classifier, 12 dims. | |
| // Generated by rtl_gen.py; do not edit by hand. | |
| // | |
| // sum(pos) > sum(neg), on signed INT8 channels taken from the pooled feature | |
| // vector. No threshold, so no constant appears anywhere in this module. | |
| module person_d12 ( | |
| input signed [7:0] f48, f71, f292, f111, f724, f406, f637, f90, | |
| input signed [7:0] f82, f269, f565, f140, | |
| output person_present | |
| ); | |
| wire signed [10:0] pos_sum = | |
| {{3{f48[7]}}, f48} + {{3{f71[7]}}, f71} + {{3{f292[7]}}, f292} + {{3{f111[7]}}, f111} + | |
| {{3{f724[7]}}, f724} + {{3{f406[7]}}, f406}; | |
| wire signed [10:0] neg_sum = | |
| {{3{f637[7]}}, f637} + {{3{f90[7]}}, f90} + {{3{f82[7]}}, f82} + {{3{f269[7]}}, f269} + | |
| {{3{f565[7]}}, f565} + {{3{f140[7]}}, f140}; | |
| assign person_present = pos_sum > neg_sum; | |
| endmodule | |