TypeError: Input 'b' of 'MatMul' Op has type float32 that does not match type int32 of argument 'a'.
来源:互联网 发布:申请域名 编辑:程序博客网 时间:2024/05/16 07:29
tensorflow
word embedding
代码:
loss = tf.reduce_mean( tf.nn.nce_loss(nce_weights, nce_biases, embed, train_labels, num_sampled, vocabulary_size))
报错:
TypeError: Input 'b' of 'MatMul' Op has type float32 that does not match type int32 of argument 'a'.
解决办法:
loss = tf.reduce_mean(
tf.nn.nce_loss(nce_weights, nce_biases, train_labels,embed,
num_sampled, vocabulary_size))
阅读全文
0 0
- TypeError: Input 'b' of 'MatMul' Op has type float32 that does not match type int32 of argument 'a'.
- TypeError: Input 'split_dim' of 'Split' Op has type float32 that does not match expected type of int
- error: argument of type 'void* (My_Thread::)(void*)' does not match 'void *(*)(void*)'
- Argument of type '(Foo::)(int,int)' does not match 'void (*)(int,int)'以及静态函数问题
- argument of type 'void (main form::)()' does not match 'void (*)(int)'
- TypeError: argument of type 'int' is not iterable
- The content of element type "configuration" must match "EMPTY". Children of type "comment" are not a
- [tensorflow]TypeError: Fetch argument .+ has invalid type
- TypeError: Value passed to parameter 'targets' has DataType float32 not in list of allowed values: i
- TypeError: object of type 'zip' has no len()、'zip' object is not subscriptable
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of the insta
- Description Resource Path Location Type Java compiler level does not match the version of the insta
- Description Resource Path Location Type Java compiler level does not match the version of the insta
- (图解)Description Resource Path Location Type Java compiler level does not match the version of
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- Description Resource Path Location Type Java compiler level does not match the version of the instal
- 产品经理如何做好迭代时间管理?
- Error java Compilation failed internal java compiler error(IDEA开发工具)
- LESS CSS学习
- JavaScript判断奇偶数
- Java Swing中添加图标、对话框、分割线、信息提示、面板的使用
- TypeError: Input 'b' of 'MatMul' Op has type float32 that does not match type int32 of argument 'a'.
- 这个图像处理,把电脑直接卡死,求解各路大神的优化方法
- Python一点应用
- Codeforces Round #409 二分
- HDU
- 全志A83T平台调试MIPI DSI屏幕心得
- Linux 禁止某个IP访问服务器
- PCL无法打开各种lib的解决方式
- Cool Edit之扫频波的生成