Skip to content

在计算alpha梯度时的一些问题 #6

Description

@sunkx109

在FunLSQ类中,您计算grad_alpha时是使用如下代码:
grad_alpha = ( (indicate_small * Qn + indicate_big * Qp + indicate_middle * (-q_w + q_w.round())) * grad_weight * g).sum().unsqueeze(dim=0)
我的问题如下
1、调用sum()这个方法的意义在于何处?按论文的理解好像不需要sum()?
2、您这个方法适用于pre channel的量化方法吗?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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