def flr_idx(x):
def f0(): return x
def f1(): return tf.subtract(x, tf.constant(4, dtype=x.dtype))
def f2(): return tf.subtract(x, tf.constant(8, dtype=x.dtype))
return tf.case([(tf.less(x, tf.constant(4, dtype=x.dtype)), f0),
(tf.less(x, tf.constant(8, dtype=x.dtype)), f1)],
default = f2, exclusive=False)
bf_classification.py 文件源码
python
阅读 25
收藏 0
点赞 0
评论 0
评论列表
文章目录