![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
医学
jidushanzhu
小菜鸟
展开
-
InvalidArgumentErrorAssign requires shapes of both tensors to match. lhs shape= rhs shape
训练模型后,想着测试模型效果,模型加载遇到以下问题,????不修改测试代码,报错居然还不一样。 InvalidArgumentError (see above for traceback): Assign requires shapes of both tensors to match. lhs shape= [64] rhs shape= [4,128,1,64] InvalidArgumentE...原创 2019-12-10 09:45:00 · 1603 阅读 · 0 评论 -
textCNN 多分类
参考https://github.com/dennybritz/cnn-text-classification-tf 基于TextCNN模型的文本分类 问题:随机生成的字向量表未保存,模型的test.py没写 1、数据来源于诊断库,该excel文件总共包含条诊断数据,个类别,前90%数据当作训练集,后10%数据当作测试集。 2、文本预处理:载入词典,去停用词,分词。 3、词向量化:统计所...原创 2019-12-09 11:31:15 · 830 阅读 · 0 评论