neuron.py 文件源码

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

项目:CM1K_emulator 作者: kebwi 项目源码 文件源码
def commit(self, cxt, cat, aif, pattern):
        """
        Commit this neuron to the network. It will already have received a new pattern in the immediately preceding broadcast.
        """
        log.trace("Neuron.commit() cxt{} cat{} aif{}".format(cxt, cat, aif))

        self.state = NeuronState.com
        self.cxt = cxt
        self.cat = cat
        self.aif = aif
        self.dist = 0
        # We shouldn't need to assign the pattern. It should already be assigned, but no harm done.
        self.pattern = pattern
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号