FC_Sparse: Only takes in allocated weights
(
model, blob_in, blob_out, w_csr, iw, jw, bias,
**kwargs
)
| 183 | |
| 184 | |
| 185 | def fc_sparse( |
| 186 | model, blob_in, blob_out, w_csr, iw, jw, bias, |
| 187 | **kwargs |
| 188 | ): |
| 189 | """FC_Sparse: Only takes in allocated weights""" |
| 190 | if not (w_csr and iw and jw and bias): |
| 191 | print("Warning...") |
| 192 | model.AddParameter(w_csr) |
| 193 | model.AddParameter(iw) |
| 194 | model.AddParameter(jw) |
| 195 | model.AddParameter(bias) |
| 196 | return model.net.FC_Sparse([blob_in, w_csr, iw, jw, bias], |
| 197 | blob_out, **kwargs) |
nothing calls this directly
no test coverage detected
searching dependent graphs…