Skip to content

Latest commit

 

History

History
42 lines (34 loc) · 1.59 KB

faq.md

File metadata and controls

42 lines (34 loc) · 1.59 KB

FAQ 常见问题

编译环境要求:

general:
    cmake >= 3.1
    gcc >= 4.8
    NDK >= r14b
模型转换:
    python >= 3.5
    onnxruntime>=1.1
    onnx-simplifier>=0.2.4
    protobuf >= 3.0

模型支持:

如何支持tensorflow, caffe, mxnet模型?

如何确定结果是否正确?

如何获取模型中间结果?

  • 修改项目目录下 /source/tnn/utils/blob_dump_utils.h 中
  • #define DUMP_INPUT_BLOB 0 --> #define DUMP_INPUT_BLOB 1,获取每层输入
  • #define DUMP_OUTPUT_BLOB 0 --> #define DUMP_OUTPUT_BLOB 1,获取每层输出
  • 仅作为调试使用

如何获取模型各个layer耗时?

网络问题

//mac下homebrew安装
//https://zhuanlan.zhihu.com/p/59805070
//https://brew.sh/index_zh-cn
//替换国内镜像的安装脚本