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

error in test_segmentation_infer.py with Debug build of Paddle #1958

Closed
sfraczek opened this issue Feb 16, 2023 · 0 comments
Closed

error in test_segmentation_infer.py with Debug build of Paddle #1958

sfraczek opened this issue Feb 16, 2023 · 0 comments

Comments

@sfraczek
Copy link

Hi,

I have stumbled upon an error when running test_segmentation_infer.py with PaddlePaddle built on Debug. The problem doesn't exist when PaddlePaddle is built on RelWithDebInfo.

command

python3.10 test_segmentation_infer.py --model_path=models/human_pp_humansegv2_mobile_192x192_inference_model_with_softmax/ --dataset='human' --dataset_config=configs/humanseg_dataset.yaml --device=CPU --use_mkldnn=True --cpu_threads=10 --model_name=PP-HumanSegV2-Lite

Error message:

python3.10: /mnt/drive/PaddlePaddle/Paddle/build/third_party/eigen3/src/extern_eigen3/unsupported/Eigen/CXX11/src/Tensor/TensorAssign.h:146: bool Eigen::TensorEvaluator<const Eigen::TensorAssignOp<LhsXprType, RhsXprType>, Device>::evalSubExprsIfNeeded(Eigen::TensorEvaluator<const Eigen::TensorAssignOp<LhsXprType, RhsXprType>, Device>::EvaluatorPointerType) [with LeftArgType = Eigen::TensorMap<Eigen::Tensor<int, 4, 1, long int>, 0, Eigen::MakePointer>; RightArgType = const Eigen::TensorConversionOp<int, const Eigen::TensorTupleReducerOp<Eigen::internal::ArgMaxTupleReducer<Eigen::Tuple<long int, float> >, const std::array<long int, 1>, const Eigen::TensorMap<Eigen::Tensor<const float, 4, 1, long int>, 0, Eigen::MakePointer> > >; Device = Eigen::DefaultDevice; Eigen::TensorEvaluator<const Eigen::TensorAssignOp<LhsXprType, RhsXprType>, Device>::EvaluatorPointerType = int*]: Assertion `dimensions_match(m_leftImpl.dimensions(), m_rightImpl.dimensions())' failed.
Aborted (core dumped)
sfraczek@sfraczek-X299:/mnt/drive/PaddlePaddle/PaddleTest/inference/python_api_test/test_int8_model$ Process Process-1:
Traceback (most recent call last):
  File "/home/sfraczek/.local/lib/python3.10/site-packages/psutil/_common.py", line 443, in wrapper
    ret = self._cache[fun]
AttributeError: 'Process' object has no attribute '_cache'
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "/home/sfraczek/.local/lib/python3.10/site-packages/psutil/_pslinux.py", line 1645, in wrapper
    return fun(self, *args, **kwargs)
  File "/home/sfraczek/.local/lib/python3.10/site-packages/psutil/_common.py", line 446, in wrapper
    return fun(self)
  File "/home/sfraczek/.local/lib/python3.10/site-packages/psutil/_pslinux.py", line 1687, in _parse_stat_file
    data = bcat("%s/%s/stat" % (self._procfs_path, self.pid))
  File "/home/sfraczek/.local/lib/python3.10/site-packages/psutil/_common.py", line 776, in bcat
    return cat(fname, fallback=fallback, _open=open_binary)
  File "/home/sfraczek/.local/lib/python3.10/site-packages/psutil/_common.py", line 764, in cat
    with _open(fname) as f:
  File "/home/sfraczek/.local/lib/python3.10/site-packages/psutil/_common.py", line 728, in open_binary
    return open(fname, "rb", buffering=FILE_READ_BUFFER_SIZE)
FileNotFoundError: [Errno 2] No such file or directory: '/proc/228972/stat'
 
During handling of the above exception, another exception occurred:
 
Traceback (most recent call last):
  File "/usr/lib/python3.10/multiprocessing/process.py", line 314, in _bootstrap
    self.run()
  File "/usr/lib/python3.10/multiprocessing/process.py", line 108, in run
    self._target(*self._args, **self._kwargs)
  File "/mnt/drive/PaddlePaddle/PaddleTest/inference/python_api_test/test_int8_model/backend/monitor.py", line 135, in cpu_stat_func
    stat_info.cpu_percent(),
  File "/home/sfraczek/.local/lib/python3.10/site-packages/psutil/__init__.py", line 999, in cpu_percent
    pt2 = self._proc.cpu_times()
  File "/home/sfraczek/.local/lib/python3.10/site-packages/psutil/_pslinux.py", line 1645, in wrapper
    return fun(self, *args, **kwargs)
  File "/home/sfraczek/.local/lib/python3.10/site-packages/psutil/_pslinux.py", line 1836, in cpu_times
    values = self._parse_stat_file()
  File "/home/sfraczek/.local/lib/python3.10/site-packages/psutil/_pslinux.py", line 1652, in wrapper
    raise NoSuchProcess(self.pid, self._name)
psutil.NoSuchProcess: process no longer exists (pid=228972)

PaddlePaddle commit

commit 3c14b38e7309e661d13bab89dcdf667fa37d39f5 (HEAD -> develop)
Author: duanyanhui <45005871+YanhuiDua@users.noreply.github.com>
Date:   Wed Feb 15 20:24:33 2023 +0800

    fix npu save_combine (#50496)

PaddleTest commit

commit f5f80e56f361d0678f23abd52b43ff69e2174a41 (HEAD -> develop, origin/develop, origin/HEAD)
Author: YuBaoku <49938469+EmmonsCurse@users.noreply.github.com>
Date:   Wed Feb 15 17:12:58 2023 +0800

    Remove delete_pass_list of ViT cases (#1952)

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

2 participants