PaddlePaddle / PaddleNLP

👑 Easy-to-use and powerful NLP and LLM library with 🤗 Awesome model zoo, supporting wide-range of NLP tasks from research to industrial applications, including 🗂Text Classification, 🔍 Neural Search, ❓ Question Answering, ℹ️ Information Extraction, 📄 Document Intelligence, 💌 Sentiment Analysis etc.
https://paddlenlp.readthedocs.io
Apache License 2.0
12.13k stars 2.94k forks source link

error: no instance of constructor "paddle::Tensor::Tensor" matches the argument list #1553

Closed felixhao28 closed 2 years ago

felixhao28 commented 2 years ago

欢迎您反馈PaddleNLP使用问题,非常感谢您对PaddleNLP的贡献! 在留下您的问题时,辛苦您同步提供如下信息:

CentOS7 CUDA11.2 Python3.6.8 PaddleNLP (809bb57eeed8712cb02b0df5df8e93fcd319510f)

Download paddle_inference.tgz from here. Extract, and specify its directory with -DPADDLE_LIB=... when building custom op.

/fops/build-a100/third-party/source/fastertransformer/fastertransformer/utils/allocator.h(88): error: no instance of constructor "paddle::Tensor::Tensor" matches the argument list
argument types are: (paddle::PlaceType, std::vector<int64_t, std::allocator<int64_t>>)
felixhao28 commented 2 years ago

I downloaded the wrong version of paddle_infernce lib. The correct link is https://paddleinference.paddlepaddle.org.cn/user_guides/download_lib.html#linux.