theano_utils.py 文件源码

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

项目:kfac-theano 作者: r00tman 项目源码 文件源码
def make_node(self, A, b):
        A = T.as_tensor_variable(A)
        b = T.as_tensor_variable(b)
        assert A.ndim == 2
        assert b.ndim in [1, 2]
        otype = T.tensor(
            broadcastable=b.broadcastable,
            dtype=(A * b).dtype)
        return theano.gof.Apply(self, [A, b], [otype])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号