ExamGecko
Question list
Search
Search

List of questions

Search

Question 48 - H13-311_V3.5 discussion

Report
Export

When using the following code to construct a neural network, MindSpore can inherit the Cell class and rewrite the __init__ and construct methods.

A.
TRUE
Answers
A.
TRUE
B.
FALSE
Answers
B.
FALSE
Suggested answer: A

Explanation:

In MindSpore, the neural network structure is defined by inheriting the Cell class, which represents a computational node or a layer in the network. Users can customize the network by overriding the __init__ method (for initializing layers) and the construct method (for defining the forward pass of the network). This modular design allows for easy and flexible neural network construction.

Thus, the statement is true because MindSpore's framework allows developers to build neural networks by extending the Cell class and defining custom behavior through the __init__ and construct methods.

HCIA AI

AI Development Framework: Detailed coverage of building neural networks in MindSpore, including how to inherit from the Cell class and rewrite key methods for custom network architecture.

asked 26/09/2024
Haitham Hanash
27 questions
User
Your answer:
0 comments
Sorted by

Leave a comment first