ops.py 文件源码

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

项目:tfdeploy 作者: riga 项目源码 文件源码
def test_SelfAdjointEigV2(self):
        t = tf.self_adjoint_eig(np.array(3 * [3, 2, 2, 1]).reshape(3, 2, 2).astype("float32"))
        # the order of eigen vectors and values may differ between tf and np, so only compare sum
        # and mean
        # also, different numerical algorithms are used, so account for difference in precision by
        # comparing numbers with 4 digits
        self.check(t, ndigits=4, stats=True, abs=True)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号