ValueError: Only call `sigmoid_cross_entropy_with_logits` with named arguments (labels=..., logits=.
来源:互联网 发布:四川省网络作家协会 编辑:程序博客网 时间:2024/06/03 18:08
在运行到
loss = tf.reduce_mean(tf.nn.sigmoid_cross_entropy_with_logits(output,Y))
时,报错:
ValueError: Only call sigmoid_cross_entropy_with_logits
with named arguments (labels=…, logits=…, …)
应该改为
loss = tf.reduce_mean(tf.nn.sigmoid_cross_entropy_with_logits(labels=output,logits=Y))
阅读全文
0 0
- ValueError: Only call `sigmoid_cross_entropy_with_logits` with named arguments (labels=..., logits=.
- ValueError: Only call `softmax_cross_entropy_with_logits` with named arguments (labels=..., logits=.
- ValueError: Only call `softmax_cross_entropy_with_logits` with named arguments (labels=..., logits=.
- ValueError: Only call `sparse_softmax_cross_entropy_with_logits` with named arguments (labels=..., l
- Only call 'softmax_cross_entropy_with_logits' with named grguments(labels=...,logits=...)
- Only call `sigmoid_cross_entropy_with_logits` with named arguments解决
- tensorflow:Only call `sparse_softmax_cross_entropy_with_logits` with named arguments (labe
- 《TensorFlow实战实例》的一些错误更正ValueError: Only call `sparse_softmax_cross_entropy_with_logits` with named a
- TensorFlow学习之路(1): correct = tf.nn.in_top_k(logits, labels, k)
- var args = Array.prototype.join.call(arguments,',');
- ValueError: "concat" mode can only merge layers with matching output shapes except for the concat
- InvalidArgumentError (see above for traceback): logits and labels must be same size:
- [].join.call(arguments,"\n")
- CMake: include called with wrong number of arguments. include() only takes one file.
- tensorflow sparse-softmax-cross-entropy-with-logits nan
- extended initializer lists only available with -std=c++11
- arguments,caller,callee,apply,call
- caller,arguments.callee,call,apply
- hdu6127 (多校联合第七场) 几何 枚举
- CentOS7下Redis安装与配置
- 微信跳转网页读取openid的方法(asp.net)
- nginx 优化--upstream & 负载均衡策略
- taokeeper 架设与部署
- ValueError: Only call `sigmoid_cross_entropy_with_logits` with named arguments (labels=..., logits=.
- 文章标题
- XlistView(POST解析、吐司)
- 巍峨立即纷纷
- openSuse 给i+n双显卡笔记本的分享
- Tensorflow安装成功,但在导入时报错的解决办法
- 【Android笔记-2】
- memcached和Redis比较
- SSL P1786 麻将游戏