Coder Social home page Coder Social logo

Comments (2)

ZhangZhiPku avatar ZhangZhiPku commented on August 29, 2024 5

首先我需要向你澄清,这个TargetPlatform决定的是"量化策略"。

你的理解是正确的,这个TargetPlatform描述了你要部署到那里,PPQ会根据这个变量选择量化策略。
你同时需要认识到部署的流程中,跟我们直接打交道的是Runtime,而非硬件。所以真实的情况是:
未命名文件 (41)
这个Targetplatfrom对应的是Runtime,而非硬件。

那么聪明的你可能想问,大家都是在同一个硬件上做量化,为什么可以有不同的量化策略?
对此我必须告诉你,它们不仅有所不同,而且差异很大...

为了更直观地说明这件事,你可以随便量化一个resnet18,分别以TargetPlatform.trt, TargetPlatform.pplcuda, TargetPlatform.metax设定量化策略,导出格式选择TargetPlatform.onnxruntime,观察它们之间的差异性。

from ppq.

PeiqinSun avatar PeiqinSun commented on August 29, 2024

非常感谢大佬的细心绘图描述, 一目了然很清晰. 回头我试试随便量化个resnet18.

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.