当前位置:网站首页>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
- Quick start sweep crawler framework
- R语言使用epiDisplay包的tabpct函数生成二维列联表并使用马赛克图可视化列联表(二维列联表、边际频数、以及按行、按列的比例)、自定义设置ylab参数设置Y轴的轴标签文本(y axis)
- Dongfeng Yueda Kia, Tencent advertising and hero League mobile game professional league cooperate to build a new E-sports ecology
- 2080 virtual machine login command
- Su directly switches to super administrator mode, so that many error reports can be avoided
- The R language uses the PDF function to save the visual image results to the PDF file, uses the PDF function to open the image device, uses the dev.off function to close the image device, and customiz
- D. master router setting and 401 networking
- Gerrit+2 triggers Jenkins task
- 龙芯处理器内核中断讲解
猜你喜欢

Su directly switches to super administrator mode, so that many error reports can be avoided

龙芯处理器内核中断讲解

使用GCC的PGO(Profile-guided Optimization)优化整个系统

Swintransformer network architecture

Tcp/ip family structure and protocol of tcp/ip series overview

布局管理中的sizePolicy的策略问题

论文《Deep Interest Evolution Network for Click-Through Rate Prediction》

Learn the mitmproxy packet capturing tool from scratch

记录使用yolov5进行旋转目标的检测

Record the use of yolov5 to detect rotating targets
随机推荐
Gerrit triggers Jenkins sonarqube scan
Quick start sweep crawler framework
R语言使用epiDisplay包的summ函数计算dataframe中指定变量在不同分组变量下的描述性统计汇总信息并可视化有序点图(名称、有效值个数、均值、中位数、标准差、最大值、最小值)
Nebula's practice of intelligent risk control in akulaku: training and deployment of graph model
力扣今日题926. 将字符串翻转到单调递增
Hangzhou AI developer meetup registration opens!
Add static route
R language uses the sum function of epidisplay package to calculate the descriptive statistical summary information of the specified variables in dataframe under different grouped variables and visual
Swintransformer network architecture
性能优化之编译优化
Some minor problems and solutions encountered when using ubantu
龙芯处理器内核中断讲解
价值超高的CA证书解析
R language uses ggplot2 to visualize the density graph (curve) of specific data columns in dataframe data, and uses Xlim parameter to specify the range of X axis
First acquaintance with go language
Notes on user experience elements: user centered product design
5、Embedding
Detailed explanation of shardingjdbc database and table
快速入门scrapy爬虫框架
Hangzhou AI developer meetup registration opens!