Peter Lau Blog

Peter Lau

要做一个有 理想与现实兼顾 的工程师

  • HOME
  • CATEGORIES
  • TAGS
  • ARCHIVES
  • ABOUT
  1. Home
  2. Home

ONNXRuntime API

APi设计方法

近期的工作由于经常涉及到基于onnxruntime进行模型部署,本着学啥熟悉啥的习惯,上来第一件事就是浏览了它的API。onnxruntime API带给我最大的感觉是清晰,让开发者很难会去误用它的接口。 include/onnxruntime/core/session/onnxruntime_c_api.h开头的一段代码就展示了为API的输入和输出等制定的宏。 #define _Out...
September 22, 2023 Peter Lau
Computer science Deep Learning

Design Pattern

Mixin

Mixin pattern Scenario Examples struct BaseImpl{ std::shared_ptr<ModuleA> module_a; std::shared_ptr<ModuleB> module_b; std::shared_ptr<ModuleC> module_c; }; If ...
September 07, 2023 Peter Lau
Computer science Design Patterns
Newer Posts Page 5 of 5

Copyright © Peter Lau Blog 2026
Powered by Hux Blog |