
tensorflow入门
文章平均质量分 61
飞奔的帅帅
马云给你还花呗
展开
-
tf.keras.layers.Embedding实现共享embedding
使用feature_column可以非常方便的实现tf.feature_column.shared_embedding_columns(shared_column_list, iembedding_size)原创 2021-06-15 18:23:13 · 2576 阅读 · 2 评论 -
tenflow 入门 tf.equal()用法
tensorflow 中tf.equal()用法:equal(x, y, name=None)equal,相等的意思。顾名思义,就是判断,x, y 是不是相等,它的判断方法不是整体判断,而是逐个元素进行判断,如果相等就是True,不相等,就是False。由于是逐个元素判断,所以x,y 的维度要一致。看个例子:import tensorflow as tfa = [[1,2,3],[4,5,6]]...原创 2018-03-15 10:50:37 · 45969 阅读 · 2 评论 -
tenflow 入门 tf.where()用法
tenflow 中tf.where()用法where(condition, x=None, y=None, name=None)condition, x, y 相同维度,condition是bool型值,True/False1,where(condition)的用法condition是bool型值,True/False返回值,是condition中元素为True对应的索引看个例子:import ...原创 2018-03-15 11:17:11 · 54918 阅读 · 1 评论 -
Your CPU supports instructions that this TensorFlow binary was not compiled to use: AVX AVX2
本文翻译自点击打开链接在使用tensorflow的时候会遇到这种情况。2018-04-26 09:51:32.365347: I C:\tf_jenkins\workspace\rel-win\M\windows\PY\35\tensorflow\core\platform\cpu_feature_guard.cc:140] Your CPU supports instructions that ...翻译 2018-04-26 10:33:33 · 555 阅读 · 0 评论