摘要: tf.where()的使用,该函数会返回满足条件的索引。经验证,发现返回均是二维矩阵,可以说明该函数用二维矩阵给出满足条件的位置索引。(若有错误,欢迎指正。)代码如下:import tensorflow as tfsess=tf.Session()import numpy as npprint('验 阅读全文
posted @ 2019-12-10 22:13 tangjunjun 阅读(3523) 评论(0) 推荐(1) 编辑
https://rpc.cnblogs.com/metaweblog/tangjunjun