Home
Products
Solutions
Developers
More
SuperPoD
Atlas 950 SuperPoD
Atlas 850E
AI Server
Atlas 650E
Cluster O&M
CCAE
Industry Applications
Internet
Telecom
Urban Data Center
Finance
Education
Energy
Transportation
Manufacturing
Healthcare
Solutions
Atlas Training Solution
Atlas Inference Solution
Development
Model Training
Model Inference
Recommendation Development
Operator Development
Heterogeneous Compute Architecture
CANN
AI Frameworks
MindSpore
Ascend for PyTorch
TensorFlow Adaptation
Application Enablement
MindSpeed
MindIE
MindCluster
MindEdge
MindSDK
Full-Pipeline Development Toolchains
MindStudio
Development Resources
Resource Download Center
Image Repository
Open-Source Software
Model Query Assistant
Documentation
Documentation
Learn
Online Courses
Developer Certifications
Documentation
Download
document.documentCenter
GetAttrNum

GetAttrNum

Function Usage

Obtains the number of attributes.

Prototype

1
size_t GetAttrNum() const

Parameters

None

Returns

Number of attributes

Constraints

None

Examples

1
2
const RuntimeAttrs * runtime_attrs = kernel_context->GetAttrs();
size_t attr_num = runtime_attrs->GetAttrNum();
Parent topic: RuntimeAttrs

Copyright © 2021-2026 Huawei Technologies Co., Ltd. All rights reserved.

Terms of Use
Privacy Policy
Cookies Policy
User Agreement
Contact Us
This site uses cookies to improve your browsing experience. By continuing to browse this site, you agree to our use of cookies.View Details