Giter Club home page Giter Club logo

Comments (5)

xiaoluomi avatar xiaoluomi commented on June 9, 2024

你好,目前Paddleslim还不支持对Softmax这个op做量化,目前支持的量化op为:['conv2d', 'depthwise_conv2d', 'conv2d_transpose', 'mul', 'matmul', 'matmul_v2'],目前仅支持在Softmax这个OP前插入量化和反量化节点。

from paddleslim.

Zheng-Bicheng avatar Zheng-Bicheng commented on June 9, 2024

你好,目前Paddleslim还不支持对Softmax这个op做量化,目前支持的量化op为:['conv2d', 'depthwise_conv2d', 'conv2d_transpose', 'mul', 'matmul', 'matmul_v2'],目前仅支持在Softmax这个OP前插入量化和反量化节点。

大佬,那这个量化节点的信息有办法修改吗?我需要将scale和zp分别固定

from paddleslim.

xiaoluomi avatar xiaoluomi commented on June 9, 2024

很抱歉,目前Paddleslim是无法提供相应的接口的,无法满足你的特殊需求。

from paddleslim.

Zheng-Bicheng avatar Zheng-Bicheng commented on June 9, 2024

很抱歉,目前Paddleslim是无法提供相应的接口的,无法满足你的特殊需求。

能帮忙给出一下插入softmax量化节点这个步骤是在哪个地方完成的吗?我可以自己进行修改

from paddleslim.

xiaoluomi avatar xiaoluomi commented on June 9, 2024

paddleslim会调用paddlepaddle框架下的量化,在https://github.com/PaddlePaddle/Paddle/blob/28920ca9ef1bf7761c4bd8a42af7d222423feb58/python/paddle/static/quantization/quant_config.py#L236
下表明支持其前面插入量化节点,量化器也在该文件下,具体插入节点等请参照https://github.com/PaddlePaddle/Paddle/tree/28920ca9ef1bf7761c4bd8a42af7d222423feb58/python/paddle/static/quantization

from paddleslim.

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.