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

Fix CS issue #23102

Merged
merged 1 commit into from
Feb 28, 2024
Merged

Conversation

zhaixuejun1993
Copy link
Contributor

Details:

*** CID 1534777: Performance inefficiencies (COPY_INSTEAD_OF_MOVE)
/agent/_work/1/openvino/src/plugins/intel_cpu/src/graph_context.h: 24 in ov::intel_cpu::GraphContext::GraphContext(const ov::intel_cpu::Config &, std::shared_ptrov::intel_cpu::WeightsSharing, bool)()
18 typedef std::shared_ptr CPtr;
19
20 GraphContext(const Config& config,
21 WeightsSharing::Ptr w_cache,
22 bool isGraphQuantized)
23 : config(config),

CID 1534777:  Performance inefficiencies  (COPY_INSTEAD_OF_MOVE)
"w_cache" is copied in call to copy constructor "std::shared_ptr<ov::intel_cpu::WeightsSharing>", when it could be moved instead.

24 weightsCache(w_cache),
25 isGraphQuantizedFlag(isGraphQuantized) {
26 rtParamsCache = std::make_shared(config.rtCacheCapacity);
27 rtScratchPad = std::make_shared(getEngine());
28 }
29

Tickets:

  • ticket-id

Signed-off-by: Zhai, Xuejun <xuejun.zhai@intel.com>
@zhaixuejun1993 zhaixuejun1993 added the WIP work in progress label Feb 27, 2024
@zhaixuejun1993 zhaixuejun1993 requested review from a team as code owners February 27, 2024 07:01
@github-actions github-actions bot added the category: CPU OpenVINO CPU plugin label Feb 27, 2024
@vurusovs vurusovs added this pull request to the merge queue Feb 28, 2024
Merged via the queue into openvinotoolkit:master with commit 050e967 Feb 28, 2024
101 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
category: CPU OpenVINO CPU plugin WIP work in progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants