Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

build error:'class buddy::Text<long long int, 2>' has no member named 'tokenize'; #108

Open
RiRi114 opened this issue Oct 27, 2023 · 0 comments

Comments

@RiRi114
Copy link

RiRi114 commented Oct 27, 2023

When I build the deep learning benchmark,I get a error.

The simplified error info is :

/home/project/buddy-benchmark/benchmarks**/DeepLearning/Models/MiniLM-L6/MiniLMDefaultBenchmark.cpp**:44:9: error: 'class buddy::Text<long long int, 2>' has no member named 'tokenize'; did you mean 'tokenCnt'?
   input.tokenize("../../benchmarks/DeepLearning/Models/MiniLM-L6/Vocab.txt",
         ^~~~~~~~
         tokenCnt

The integrated error info is :

[3/4] Building CXX object benchmarks/DeepLearning/Models/MiniLM-L6/CMakeFiles/minilm-l6-benchmark.dir/MiniLMDefaultBenchmark.cpp.o
FAILED: benchmarks/DeepLearning/Models/MiniLM-L6/CMakeFiles/minilm-l6-benchmark.dir/MiniLMDefaultBenchmark.cpp.o
/usr/bin/c++  -I/home/project/buddy-mlir/build/cmake/../../frontend/Interfaces -I/home/project/buddy-mlir/build/cmake/../../thirdparty/include -I/home/project/buddy-benchmark/thirdparty/opencv/build -I/home/project/buddy-benchmark/thirdparty/opencv/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/core/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/flann/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/imgproc/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/ml/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/photo/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/dnn/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/features2d/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/imgcodecs/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/videoio/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/calib3d/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/highgui/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/objdetect/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/stitching/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/ts/include -I/home/project/buddy-benchmark/thirdparty/opencv/modules/video/include -isystem /home/project/buddy-benchmark/build/vendor/benchmark/include -no-pie -O3 -DNDEBUG -std=gnu++1z -MD -MT benchmarks/DeepLearning/Models/MiniLM-L6/CMakeFiles/minilm-l6-benchmark.dir/MiniLMDefaultBenchmark.cpp.o -MF benchmarks/DeepLearning/Models/MiniLM-L6/CMakeFiles/minilm-l6-benchmark.dir/MiniLMDefaultBenchmark.cpp.o.d -o benchmarks/DeepLearning/Models/MiniLM-L6/CMakeFiles/minilm-l6-benchmark.dir/MiniLMDefaultBenchmark.cpp.o -c /home/project/buddy-benchmark/benchmarks/DeepLearning/Models/MiniLM-L6/MiniLMDefaultBenchmark.cpp
/home/project/buddy-benchmark/benchmarks/DeepLearning/Models/MiniLM-L6/MiniLMDefaultBenchmark.cpp: In function 'void {anonymous}::BM_MiniLM(benchmark::State&)':
/home/project/buddy-benchmark/benchmarks/DeepLearning/Models/MiniLM-L6/MiniLMDefaultBenchmark.cpp:44:9: error: 'class buddy::Text<long long int, 2>' has no member named 'tokenize'; did you mean 'tokenCnt'?
   input.tokenize("../../benchmarks/DeepLearning/Models/MiniLM-L6/Vocab.txt",
         ^~~~~~~~
         tokenCnt

The cmake config is:

cmake -G Ninja .. \
    -DCMAKE_BUILD_TYPE=RELEASE \
    -DDEEP_LEARNING_BENCHMARKS=ON \
    -DOpenCV_DIR=/home/project/buddy-benchmark/thirdparty/opencv/build/  \
    -DBUDDY_MLIR_BUILD_DIR=/home/project/buddy-mlir/build/

How can I resolve this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant