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

Fea/nn graph/graph name #5413

Merged
merged 55 commits into from
Jul 9, 2021
Merged

Fea/nn graph/graph name #5413

merged 55 commits into from
Jul 9, 2021

Conversation

strint
Copy link
Contributor

@strint strint commented Jul 7, 2021

根据子类实例化顺序递增为Graph/Job创建ID:

class A(nn.Graph)

class B(nn.Graph)

class CB(B)


x = A()  
x.name # A_0
x = A()
x.name # A_1
x = B()
x.name # B_0
x = B()
x.name # B_1
x = CB()
x.name # CB_0

Base automatically changed from dev_graph to master July 7, 2021 14:16
@strint strint added this to the v0.5.0 milestone Jul 8, 2021
@oneflow-ci-bot oneflow-ci-bot removed their request for review July 8, 2021 16:44
@oneflow-ci-bot oneflow-ci-bot removed their request for review July 9, 2021 06:42
@oneflow-ci-bot oneflow-ci-bot self-requested a review July 9, 2021 06:42
@oneflow-ci-bot oneflow-ci-bot requested review from oneflow-ci-bot and removed request for oneflow-ci-bot July 9, 2021 08:54
@oneflow-ci-bot oneflow-ci-bot merged commit 041e441 into master Jul 9, 2021
@oneflow-ci-bot oneflow-ci-bot deleted the fea/nn_graph/graph_name branch July 9, 2021 10:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants