首页
技术
登录
6mi
u
盘
搜
搜 索
技术
TypeError: float() argument must be a string or a number, not ‘Dimension‘
TypeError: float() argument must be a string or a number, not ‘Dimension‘
技术
2024-07-27
75
出错代码
tf
.
convert_to_tensor
(
inputs
.
shape
[
0
]
,
dtype
=
tf
.
float32
)
解决方法
tf
.
convert_to_tensor
(
inputs
.
shape
[
0
]
.
value
,
dtype
=
tf
.
float32
)
转载请注明原文地址:https://ipadbbs.8miu.com/read-51115.html
最新回复
(
0
)