当前位置:网站首页>Gather, unsqueeze and other operators when PTH is converted to onnx
Gather, unsqueeze and other operators when PTH is converted to onnx
2022-04-23 07:27:00 【wujpbb7】
With dynamic input view perhaps reshape Turn into onnx There will be shape/gather/unsqueeze/concat operator .
Replace with flatten that will do .
def forward(self, inputs):
x1 = self.conv1(inputs)
x2 = self.conv2(x1)
# With dynamic input view perhaps reshape Turn into onnx There will be shape/gather/unsqueeze/concat operator .
#x2_flatten = x2.view(x2.size(0), -1)
#x2_flatten = torch.reshape(x2, (x2.size(0), -1))
x2_flatten = torch.flatten(x2, start_dim=1)
x3 = self.fc1(x2_flatten)
x4 = self.fc2(x3)
return x4

版权声明
本文为[wujpbb7]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230611550629.html
边栏推荐
- 【无标题】PID控制TT编码器电机
- [dynamic programming] longest increasing subsequence
- How to standardize multidimensional matrix (based on numpy)
- Machine learning notes 1: learning ideas
- Chapter 2 pytoch foundation 1
- The simplest and complete example of libwebsockets
- torch_ Geometric learning 1, messagepassing
- Common regular expressions
- UEFI学习01-ARM AARCH64编译、ArmPlatformPriPeiCore(SEC)
- Gee configuring local development environment
猜你喜欢

Résolution du système

GIS实战应用案例100篇(五十一)-ArcGIS中根据指定的范围计算nc文件逐时次空间平均值的方法

【无标题】PID控制TT编码器电机

Infrared sensor control switch

imx6ull-qemu 裸机教程2:USDHC SD卡

【点云系列】Multi-view Neural Human Rendering (NHR)

Device Tree 详解

使用 trt 的int8 量化和推断 onnx 模型

【点云系列】FoldingNet:Point Cloud Auto encoder via Deep Grid Deformation

使用proteus仿真STM32超声波SRF04测距!Code+Proteus
随机推荐
多机多卡训练时的错误
机器视觉系列(01)---综述
AUTOSAR从入门到精通100讲(八十三)-BootLoader自我刷新
[point cloud series] sg-gan: advantageous self attention GCN for point cloud topological parts generation
网络层重要知识(面试、复试、期末)
C language, a number guessing game
Unable to determine the device handle for GPU 0000:02:00.0: GPU is lost.
RISCV MMU 概述
Chapter 5 fundamentals of machine learning
PyTorch 12. hook的用法
Gee configuring local development environment
“Expression #1 of SELECT list is not in GROUP BY clause and contains nonaggregated
项目文件“ ”已被重命名或已不在解决方案中、未能找到与解决方案关联的源代码管理提供程序——两个工程问题
Minesweeping games
MySQL的安装与配置——详细教程
Systrace 解析
[3D shape reconstruction series] implicit functions in feature space for 3D shape reconstruction and completion
Solution to slow compilation speed of Xcode
UEFI学习01-ARM AARCH64编译、ArmPlatformPriPeiCore(SEC)
unhandled system error, NCCL version 2.7.8