bf_classification_ga.py 文件源码

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

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


问题


面经


文章

微信
公众号

扫码关注公众号