theano_utils.py 文件源码

python
阅读 27 收藏 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 in [2, 3]
        assert B.ndim in [2, 3]
        assert A.ndim == B.ndim
        otype = T.tensor(
            broadcastable=B.broadcastable,
            dtype=(A * B).dtype)
        return theano.gof.Apply(self, [A, B], [otype])
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号