Skip to content
This repository has been archived by the owner on Jan 24, 2024. It is now read-only.

[CRC] add docstring for StatementIR #211

Merged
merged 2 commits into from
Jun 28, 2023
Merged

Conversation

ccsuzzh
Copy link
Contributor

@ccsuzzh ccsuzzh commented Jun 27, 2023

add docstring for StatementStatementIRStatementIRFactory

@paddle-bot
Copy link

paddle-bot bot commented Jun 27, 2023

Thanks for your contribution!

@paddle-bot paddle-bot bot added contributor External developers status: proposed labels Jun 27, 2023
Statement is used to represent a sentence of code for building the neural network model,
which has four types: "call", "api", "method", and "layer".

**Notes**:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@@ -135,6 +149,10 @@ def __repr__(self):

@Singleton
class StatementIRFactory:
"""
It is used to create a singleton StatementIR.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
It is used to create a singleton StatementIR.
It is used to create a StatementIR.

StatementIR 不是单例,StatementIRFactory 是单例

Copy link
Collaborator

@NotHaozi NotHaozi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@SigureMo SigureMo merged commit 1420843 into PaddlePaddle:develop Jun 28, 2023
@ccsuzzh ccsuzzh deleted the statement branch June 28, 2023 02:44
@luotao1 luotao1 added the HappyOpenSource 快乐开源活动issue与PR label Jul 3, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
contributor External developers HappyOpenSource 快乐开源活动issue与PR status: proposed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants