Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
P
Pytorchjob
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Engin Eren
Pytorchjob
Commits
81b28b4a
Commit
81b28b4a
authored
2 years ago
by
Engin Eren
Browse files
Options
Downloads
Patches
Plain Diff
indent. error
parent
297899d9
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Pipeline
#4559918
passed
2 years ago
Stage: build
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
pytorch_job_wganSingleGen_ncc.yaml
+1
-1
1 addition, 1 deletion
pytorch_job_wganSingleGen_ncc.yaml
wganSingleGen.py
+2
-3
2 additions, 3 deletions
wganSingleGen.py
with
3 additions
and
4 deletions
pytorch_job_wganSingleGen_ncc.yaml
+
1
−
1
View file @
81b28b4a
...
...
@@ -40,7 +40,7 @@ spec:
limits
:
nvidia.com/gpu
:
1
Worker
:
replicas
:
4
replicas
:
2
restartPolicy
:
OnFailure
template
:
metadata
:
...
...
This diff is collapsed.
Click to expand it.
wganSingleGen.py
+
2
−
3
View file @
81b28b4a
...
...
@@ -274,9 +274,8 @@ def run(args):
print
(
'
Critic trainable params:
'
,
sum
(
p
.
numel
()
for
p
in
Crit_E_H
.
parameters
()
if
p
.
requires_grad
))
print
(
'
Generator trainable params:
'
,
sum
(
p
.
numel
()
for
p
in
Gen_E_H
.
parameters
()
if
p
.
requires_grad
))
if
args
.
world_size
>
1
:
Distributor
=
nn
.
parallel
.
DistributedDataParallel
if
use_cuda
\
else
nn
.
parallel
.
DistributedDataParallelCPU
if
args
.
world_size
>
1
:
Distributor
=
nn
.
parallel
.
DistributedDataParallel
if
use_cuda
else
nn
.
parallel
.
DistributedDataParallelCPU
Crit_E_H
=
Distributor
(
Crit_E_H
,
device_ids
=
[
args
.
local_rank
],
output_device
=
args
.
local_rank
)
Gen_E_H
=
Distributor
(
Gen_E_H
,
device_ids
=
[
args
.
local_rank
],
output_device
=
args
.
local_rank
)
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment