当前位置:网站首页>not all arguments converted during string formatting
not all arguments converted during string formatting
2022-07-23 19:18:00 【Zero point_ ling】
Translated into : Not all parameters are converted during string formatting
In fact, this error is caused by the incorrect format of variables ,
stay python Array , The element type in the array is character , When it is expected to be used int Type , Need to use int()
The following code ,eachOutChannel It's an array , Be similar to [64,64,'M',128.....]
In the output channel of neural network , The output channel type is expected to be int, You need to use int() Do type conversion .
for v in eachOutChannel:
if v == 'M':
layers += [nn.MaxPool2d(kernel_size=2, stride=2)]
else:
conv2d = nn.Conv2d(in_channel, int(v), kernel_size=3, padding='same')
layers += [conv2d, nn.ReLU(True)]
in_channel = int(v)边栏推荐
- elk筆記25--快速體驗APM
- C # split usage, split split split string
- 一定要执行多个请求,都要捕获错误,使用try catch 不够优雅
- [C language] program environment and preprocessing
- [machine learning] Wu Enda: lifelong learning
- Digital security giant entrust revealed that it was attacked by blackmail software gangs in June
- 从txt中读取数据转成yolo格式数据
- Elk note 25 - expérience rapide APM
- 小鱼送激光雷达啦 | 恰饭即抽奖第一期
- Shell
猜你喜欢
![[2018] [paper notes] graphene FET and [2] - Preparation and transfer of graphene](/img/32/c6e4af95baf322adf06bd8ee741b67.png)
[2018] [paper notes] graphene FET and [2] - Preparation and transfer of graphene

How can win11 add 3D effects to pictures? Win11 method of adding picture 3D effect
[paper reading] gettext: trajectory flow map enhanced transformer for next POI recommendation

@JPA annotation in entity

【C语言】程序环境和预处理

H7-TOOL的I2C接口方式脱机烧录操作方法,已经发布(2022-07-16)

mBio | 海洋所孙超岷组在深海原位验证了微生物介导的单质硫形成新通路

Digital security giant entrust revealed that it was attacked by blackmail software gangs in June

移动语义和完美转发浅析

Error reporting caused by the use of responsebodyadvice interface and its solution
随机推荐
[paper reading] gettext: trajectory flow map enhanced transformer for next POI recommendation
C#Split的用法,Split分割字符串
TCL scripting language foundation (2)
What is the difference between preamplifier and power amplifier?
Application of jishili electrometer in testing scheme of new energy battery
Time2Vec 的理解与简单实现
电子元件-电阻
去中心化存储面临的挑战
Testing scheme of granite dielectric constant by network
[C language] program environment and preprocessing
DP problem collection
作为一名后台开发人员,你必须知道的两种过滤器
Moxa serial server model, moxa serial server product configuration instructions
Alibaba最新神作!耗时187天肝出来1015页分布式全栈手册太香了
多线程&高并发(全网最新:面试题+导图+笔记)面试手稳心不慌
mBio | 海洋所孙超岷组在深海原位验证了微生物介导的单质硫形成新通路
AE 教程,如何在 After Effects 中对 Illustrator 分图层文档进行动画绘制?
EmguCV 常用函数功能说明「建议收藏」
canvas绘制文本和清除绘制
Read data from txt and convert it to Yolo format data