摘要: 1.tf.nn.embedding_lookup用来选取张量里对应的索引元素 %tensorflow_version 2.x import tensorflow as tf p=tf.Variable(tf.random.uniform([10,1])) b=tf.nn.embedding_look 阅读全文
posted @ 2020-03-19 21:07 小千北同学超爱写代码 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 参考: https://www.zhihu.com/question/45027109/answer/129387065 https://blog.csdn.net/longxinchen_ml/article/details/89077048 一、引入 在我们完成基本的句子分词后,我们要把它们输入 阅读全文
posted @ 2020-03-19 18:38 小千北同学超爱写代码 阅读(789) 评论(0) 推荐(0) 编辑