(flops)
| 280 | |
| 281 | |
| 282 | def print_op_stats(flops): |
| 283 | header = [ |
| 284 | "name", |
| 285 | "class_name", |
| 286 | "input_shapes", |
| 287 | "output_shapes", |
| 288 | "flops", |
| 289 | "flops_cum", |
| 290 | "percentage", |
| 291 | "bar", |
| 292 | ] |
| 293 | if _receptive_field_enabled: |
| 294 | header.insert(4, "receptive_field") |
| 295 | header.insert(5, "stride") |
| 296 | logger.info("flops stats: \n" + tabulate.tabulate(dict2table(flops, header=header))) |
| 297 | |
| 298 | |
| 299 | def get_param_stats(param: Tensor): |
no test coverage detected