zjhellofss / KuiperInfer

校招、秋招、春招、实习好项目!带你从零实现一个高性能的深度学习推理库,支持大模型 llama2 、Unet、Yolov5、Resnet等模型的推理。Implement a high-performance deep learning inference library step by step
MIT License
2.59k stars 295 forks source link

style: code style fix #52

Closed sexjun closed 11 months ago

sexjun commented 11 months ago

Remove unnecessary code

zjhellofss commented 11 months ago

{ utils::LayerTimeLogging layer_time_logging(op_name, op_type); status = layer->Forward(); }

这段代码是用raii来做计时的,计时器从layer_time_logging初始化时开始,到layer_time_logging对象销毁析构函数中记录销毁时间。从初始化到销毁刚好是layer.forward的执行时间。