bf_classification_ga.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:indoor_localization 作者: kyeongsoo 项目源码 文件源码
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)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号