cm1k_emulator.py 文件源码

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

项目:CM1K_emulator 作者: kebwi 项目源码 文件源码
def update_firing_dist_and_cat(self):
        # Called from update_all_neuron_dists() when LCOMP is updated to seed DIST with best neuron's distance
        # Called whenever DIST is read
        log.trace("CM1KEmulator.update_firing_dist_and_cat()")

        if self.firing_neurons:
            self.write_dist_non_ui(self.firing_neurons[-1].dist)
            self.write_cat(self.firing_neurons[-1].cat)
            if self.firing_neurons[-1].degenerate:
                self.write_cat_degenerate(True)
            self.firing_neurons.pop()
        else:
            self.write_dist_non_ui(0xFFFF)
            self.write_cat(0xFFFF)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号