CharlesCNorton
Image-level person classification on EUPE-ViT-B features with no free parameters
e8b8483 | // Zero-parameter person classifier, 4 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_d4 ( | |
| input signed [7:0] f48, f71, f637, f90, | |
| output person_present | |
| ); | |
| wire signed [8:0] pos_sum = | |
| {{1{f48[7]}}, f48} + {{1{f71[7]}}, f71}; | |
| wire signed [8:0] neg_sum = | |
| {{1{f637[7]}}, f637} + {{1{f90[7]}}, f90}; | |
| assign person_present = pos_sum > neg_sum; | |
| endmodule | |