Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
221cb0332
Manage
Activity
Members
Labels
Plan
Issues
0
Issue boards
Milestones
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2022
221cb0332
Commits
50f5d7a0
Unverified
Commit
50f5d7a0
authored
2 years ago
by
i-robot
Committed by
Gitee
2 years ago
Browse files
Options
Downloads
Plain Diff
!3101 fix run_distribute_train.sh for scop
Merge pull request !3101 from 185******25/master
parents
9d78f770
6a1352e1
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
official/cv/resnet/golden_stick/scripts/run_distribute_train.sh
+5
-25
5 additions, 25 deletions
...al/cv/resnet/golden_stick/scripts/run_distribute_train.sh
with
5 additions
and
25 deletions
official/cv/resnet/golden_stick/scripts/run_distribute_train.sh
+
5
−
25
View file @
50f5d7a0
...
...
@@ -16,7 +16,7 @@
CURPATH
=
"
$(
dirname
"
$0
"
)
"
if
[
$#
!=
4
]
&&
[
$#
!=
5
]
if
[
$#
!=
4
]
&&
[
$#
!=
6
]
then
echo
"Usage: bash run_distribute_train.sh [RANK_TABLE_FILE] [PYTHON_PATH] [CONFIG_PATH] [DATASET_PATH] [CKPT_TYPE](optional) [CKPT_PATH](optional)"
exit
1
...
...
@@ -41,10 +41,6 @@ then
exit
1
fi
if
[
$#
==
5
]
then
PATH3
=
$(
get_real_path
$5
)
fi
if
[
!
-f
$PATH1
]
then
...
...
@@ -58,36 +54,20 @@ then
exit
1
fi
if
[
$#
==
5
]
&&
[
!
-f
$PATH3
]
then
echo
"error: FP32_CKPT=
$PATH3
is not a file"
exit
1
fi
if
[
$#
==
5
]
;
then
CKPT_TYPE
=
$4
CKPT_FILE
=
$(
get_real_path
$5
)
if
[
$#
==
6
]
;
then
CKPT_TYPE
=
$5
CKPT_FILE
=
$(
get_real_path
$6
)
if
[
"x
$CKPT_TYPE
"
!=
"xFP32"
]
&&
[
"x
$CKPT_TYPE
"
!=
"xPRETRAINED"
]
;
then
echo
"error: CKPT_TYPE=
$CKPT_TYPE
is not valid, should be FP32 or PRETRAINED"
exit
1
fi
if
[
!
-f
$CKPT_FILE
]
;
then
echo
"error: CKPT_
FILE
=
$CKPT_FILE
is not a file"
echo
"error: CKPT_
PATH
=
$CKPT_FILE
is not a file"
exit
1
fi
fi
if
[
"x
${
RUN_EVAL
}
"
==
"xTrue"
]
&&
[
!
-d
$EVAL_DATASET_PATH
]
then
echo
"error: EVAL_DATASET_PATH=
$EVAL_DATASET_PATH
is not a directory"
exit
1
fi
if
[
"x
${
RUN_EVAL
}
"
==
"xTrue"
]
then
bootup_cache_server
fi
ulimit
-u
unlimited
export
DEVICE_NUM
=
8
export
RANK_SIZE
=
8
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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