Reshape and ssd Permute onnx转换caffe代码

本文详细解析了Caffe中Reshape层的参数设置方法,包括shape参数的具体含义及使用技巧,同时对比了Flatten、Permute等特殊层的用法,为Caffe模型到SNPEdlc格式的转换提供了实用指南。

caffe 中两个层的参数如下

 layer {
    name: "reshape"
    type: "Reshape"
    bottom: "input"
    top: "output"
    reshape_param {   ##字典里面一个字典
      shape {
        dim: 0  # copy the dimension from below
        dim: 2
        dim: 3
        dim: -1 # infer it from the other dimensions
      }
    }
  }

在这里插入图片描述两个参数是一个是一组字典,一个是一组列表值
参数名字一个是shape 一个是order

Caffe 转SNPE dlc格式之Flatten、Reshape、Permute层的使用

https://blog.youkuaiyun.com/u014202086/article/details/78143501?utm_source=blogxgwz8
在这里插入图片描述

caffe特殊层:permute\reshape\flatten\slice\concat

https://blog.youkuaiyun.com/liu1152239/article/details/81478313
在这里插入图片描述

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值