Skip to content

ODE计算代码问题 #9

@jinguangyin

Description

@jinguangyin

请问代码中的这段有详细解释吗?确保特征值小于1为什么这么做,为什么不是直接乘上一个可学习参数?
d = torch.clamp(self.d, min=0, max=1) w = torch.mm(self.w * d, torch.t(self.w)) w = (1 + self.beta) * w - self.beta * torch.mm(torch.mm(w, torch.t(w)), w) xw = torch.einsum('ijkl, lm->ijkm', x, w) d2 = torch.clamp(self.d2, min=0, max=1) w2 = torch.mm(self.w2 * d2, torch.t(self.w2)) w2 = (1 + self.beta) * w2 - self.beta * torch.mm(torch.mm(w2, torch.t(w2)), w2) xw2 = torch.einsum('ijkl, km->ijml', x, w2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions