当前位置:网站首页>Tensorflow prompts typeerror: unsupported operand type (s) for *: 'float' and 'nonetype‘
Tensorflow prompts typeerror: unsupported operand type (s) for *: 'float' and 'nonetype‘
2022-06-12 17:31:00 【Laoyoutiao 666】
The error code is as follows :
, The variables are declared as follows :
![]()
This is because the wrong type of tensor is used , stay TensorFlow Medium tensor When it comes to finding gradient and updating gradient , Need to use special tensor:Variable, About to be the original tensor Direct force to Variable that will do .
![]()
in addition , If the gradient descent algorithm is implemented manually ,tensorflow You cannot use the direct subtraction method of the first screenshot in , It should use TensorFlow Medium assign_sub() function , See the notes in the following figure for the reason :

Reference link : Teacher long Liangqu's 《 Deep learning and TensorFlow2 Introduction of actual combat 》 Class hour 39 Forward propagation -4,B Station links :https://www.bilibili.com/video/BV165411j7ro?from=search&seid=4255840397349822501
This question may have been familiar to me for a long time TensorFlow It's not a problem for the big guys , But for a novice like me, I was confused when I first met him , So write this blog post to record
边栏推荐
- First acquaintance with go language
- 徽商期货开户可靠吗?资金安全吗?
- (8) Goto keyword
- 性能优化之编译优化
- Feedback compilation
- Modify the configuration of the router connected to your computer. The website is 192.168.1.1
- R语言使用epiDisplay包的aggregate.plot函数可视化每个子集的汇总统计信息(可视化基于单个分组下的阳性指标的概率值及其95%置信区间、基于折线图、仅仅适用于目标类别为二分类)
- R语言使用pdf函数将可视化图像结果保存到pdf文件中、使用pdf函数打开图像设备、使用dev.off函数关闭图像设备、自定义width参数和height参数指定图像的宽度和高度
- Deep interest evolution network for click through rate prediction
- 406. 根据身高重建队列
猜你喜欢

How to use the official documents of pytorch and torchvision

如何查看、修改和删除SSH

selenium元素定位

多种Qt的开发方式,你选择哪种?

淘宝Native研发模式的演进与思考 | DX研发模式

Nebula's practice of intelligent risk control in akulaku: training and deployment of graph model

R language arma-garch-copula model and financial time series case

Gerrit triggers Jenkins sonarqube scan

Dongfeng Yueda Kia, Tencent advertising and hero League mobile game professional league cooperate to build a new E-sports ecology

Uniapp wallpaper applet source code / double ended wechat Tiktok applet source code
随机推荐
邱盛昌:OPPO商业化数据体系建设实战
全局锁、表锁、行锁
Kill program errors in the cradle with spotbugs
Swintransformer network architecture
数据库SQL操作基础
性能优化之编译优化
Is it cost-effective to apply for Huagui sweet home term life insurance? What are the advantages of this product?
406. reconstruct the queue based on height
Gerrit+2触发Jenkins任务
Schrodinger's Japanese learning applet source code
Dongfeng Yueda Kia, Tencent advertising and hero League mobile game professional league cooperate to build a new E-sports ecology
Saturated! Can't future programmers work anymore?
(3) Golang - data type
记录使用yolov5进行旋转目标的检测
2080 virtual machine login command
qemu+gdb小节
大端模式和小端模式的區別
The R language uses the tabpct function of the epidisplay package to generate a two-dimensional contingency table, and uses the mosaic diagram to visualize the contingency table (two-dimensional conti
初识GO语言
D. master router setting and 401 networking