Giter Club home page Giter Club logo

Comments (5)

ZhangZhiPku avatar ZhangZhiPku commented on May 10, 2024

你是想看cuda的实现还是pytorch的实现?

from ppq.

huoshuai-dot avatar huoshuai-dot commented on May 10, 2024

你是想看cuda的实现还是pytorch的实现?

pytorch的

from ppq.

ZhangZhiPku avatar ZhangZhiPku commented on May 10, 2024

pytorch的实现可以看这个
https://github.com/openppl-public/ppq/blob/master/ppq/quantization/qfunction/linear.py

ppq使用tensor quantization config来控制量化流程,所有量化逻辑都绑定在算子身上,你可以通过op.config来访问这些tensor quantization config结构。ppq.executor在执行到每一个算子的时候,将去读取算子身上绑定的量化信息,并使用 linear.py 中定义的量化函数对数据进行处理。

from ppq.

huoshuai-dot avatar huoshuai-dot commented on May 10, 2024

linear.py 定义的是量化tensor的函数 那么 假设一个卷积 他的weight以及bias全部被量化成uint8类型之后 uint8的输入feature跟这些量化后的权重的卷积过程是调用哪些函数去执行呢?还是说pytorch支持uint8的卷积操作?

from ppq.

ZhangZhiPku avatar ZhangZhiPku commented on May 10, 2024

pytorch不支持uint8的卷积,linear.py里面量化完了还是浮点数哦,你再仔细看看...

from ppq.

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.