GithubHelp home page GithubHelp logo

Comments (11)

vshampor avatar vshampor commented on May 28, 2024

@aleksei-kashapov could you retry with latest NNCF version?

from nncf.

kshpv avatar kshpv commented on May 28, 2024

@vshampor
The issue with lacking of FQ on the input tensor was resolved.
As you asked I quantized the same model by NNCF 1.5. with default quantization mode. As a result the problem with the pattern (Power, ReduceSum, Power, Add, Power) still remains
Screenshot 2020-11-12 152822 (2)

from nncf.

vshampor avatar vshampor commented on May 28, 2024

@aleksei-kashapov which operation in PyTorch does this problematic subgraph correspond to?

from nncf.

kshpv avatar kshpv commented on May 28, 2024

@vshampor

class L2Norm(nn.Module):

    def __init__(self, n_dims, scale=20., eps=1e-10):
        super(L2Norm, self).__init__()
        self.n_dims = n_dims
        self.weight = nn.Parameter(torch.Tensor(self.n_dims))
        self.eps = eps
        self.scale = scale

    def forward(self, x):
        # normalization layer convert to FP32 in FP16 training
        x_float = x.float()
        norm = x_float.pow(2).sum(1, keepdim=True).sqrt() + self.eps
        return (self.weight[None, :, None, None].float().expand_as(x_float) *
                x_float / norm).type_as(x)

from nncf.

vshampor avatar vshampor commented on May 28, 2024

@aleksei-kashapov did @register_module approach work in this case?

from nncf.

vshampor avatar vshampor commented on May 28, 2024

@aleksei-kashapov still waiting for you to verify.

from nncf.

vshampor avatar vshampor commented on May 28, 2024

@aleksei-kashapov did you have a chance to verify it?

from nncf.

kshpv avatar kshpv commented on May 28, 2024

@vshampor I am really sorry. I apologize, I will check it out soon

from nncf.

kshpv avatar kshpv commented on May 28, 2024

should be resolved by #637

from nncf.

kshpv avatar kshpv commented on May 28, 2024

Should be fixed with #984

from nncf.

kshpv avatar kshpv commented on May 28, 2024

The issue is resolved by #984

from nncf.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.