Skip to content

[WIP] Update FUNIT training code#2

Draft
WolframRhodium wants to merge 2 commits into
Oneflow-Inc:mainfrom
WolframRhodium:main
Draft

[WIP] Update FUNIT training code#2
WolframRhodium wants to merge 2 commits into
Oneflow-Inc:mainfrom
WolframRhodium:main

Conversation

@WolframRhodium
Copy link
Copy Markdown
Contributor

No description provided.

@WolframRhodium WolframRhodium changed the title Update FUNIT training code [WIP] Update FUNIT training code Mar 29, 2021
Comment thread FUNIT/train.py
labels_style: tp.Numpy.Placeholder((N,), dtype=flow.int32)
):

with flow.scope.placement("gpu", f"0:{num_gpus-1}"):
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

流水并行的话,应该是网络某段只 place 在某张卡上,这里的设置就变成下面判别器部分的参数都在每张卡上复制一份了

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

这里写的是如果只有1张卡,那判别器就放在卡0上;如果有2张卡,那判别器参数放在卡1上,为什么会两张卡都复制一份?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants