首页
科技
登录
6mi
u
盘
搜
搜 索
科技
错误提示:ValueError: If initializer is a constant, do not specify shape.
错误提示:ValueError: If initializer is a constant, do not specify shape.
科技
2022-07-15
121
这句话的意思是出初始化的数据是一个常量的话,不需要指定形状。 上述代码会报错: 如下如所示: 此时只需把v2_cons中的shape=[1,4]去掉即可。 这样就可以正常运行,结果如下:
转载请注明原文地址:https://blackberry.8miu.com/read-8171.html
最新回复
(
0
)