def bld_idx(x):
def b0(): return tf.constant(0, dtype=x.dtype)
def b1(): return tf.constant(1, dtype=x.dtype)
def b2(): return tf.constant(2, dtype=x.dtype)
return tf.case([(tf.less(x, tf.constant(4, dtype=x.dtype)), b0),
(tf.less(x, tf.constant(8, dtype=x.dtype)), b1)],
default = b2, exclusive=False)
bf_classification_ga.py 文件源码
python
阅读 24
收藏 0
点赞 0
评论 0
评论列表
文章目录