Giter VIP home page Giter VIP logo

Comments (5)

xperzy avatar xperzy commented on May 29, 2024

Thanks for the issue, I'm fixing this problem and will update once finished.

from paddlevit.

xperzy avatar xperzy commented on May 29, 2024

Hello @GtxMiracle, I have fixed the code and now in my env the model after quant can be load and run using paddleslim eval.py.

Please check the new commit here

and newly added documents here for details.

from paddlevit.

GtxMiracle avatar GtxMiracle commented on May 29, 2024

您好,使用了您提供的最新的模型文件和导出脚本,量化后的模型测试时仍然报错:
Traceback (most recent call last):
File "eval.py", line 120, in
main()
File "eval.py", line 116, in main
eval(args)
File "eval.py", line 80, in eval
fetch_list=fetch_targets)
File "/Users/gtx/opt/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/executor.py", line 1262, in run
six.reraise(*sys.exc_info())
File "/Users/gtx/opt/anaconda3/envs/paddle/lib/python3.6/site-packages/six.py", line 719, in reraise
raise value
File "/Users/gtx/opt/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/executor.py", line 1260, in run
return_merged=return_merged)
File "/Users/gtx/opt/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/executor.py", line 1402, in _run_impl
use_program_cache=use_program_cache)
File "/Users/gtx/opt/anaconda3/envs/paddle/lib/python3.6/site-packages/paddle/fluid/executor.py", line 1492, in _run_program
[fetch_var_name])
RuntimeError: (NotFound) Operator (fake_quantize_dequantize_moving_average_abs_max) does not have kernel for data_type[int]:data_layout[ANY_LAYOUT]:place[CPUPlace]:library_type[PLAIN].
[Hint: Expected kernel_iter != kernels.end(), but received kernel_iter == kernels.end().] (at /home/Paddle/paddle/fluid/framework/operator.cc:1297)
[operator < fake_quantize_dequantize_moving_average_abs_max > error]

from paddlevit.

xperzy avatar xperzy commented on May 29, 2024

@GtxMiracle 模型导出方式是否按照上面提到的文档提供的方式进行导出? 转静态图过程中有无报错? batchsize等是否设置正确?

from paddlevit.

xperzy avatar xperzy commented on May 29, 2024

请提供更多的信息,方便我们判断问题在哪。

from paddlevit.

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.