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
482e2863
Commit
482e2863
authored
2 years ago
by
lihaoyang
Browse files
Options
Downloads
Patches
Plain Diff
update tbnet shell scripts
parent
c7456963
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/recommend/tbnet/scripts/run_standalone_train.sh
+2
-1
2 additions, 1 deletion
official/recommend/tbnet/scripts/run_standalone_train.sh
with
2 additions
and
1 deletion
official/recommend/tbnet/scripts/run_standalone_train.sh
+
2
−
1
View file @
482e2863
...
...
@@ -29,16 +29,17 @@ if [ $# == 3 ]; then
DEVICE_TARGET
=
$3
fi
python preprocess_dataset.py
--dataset
$DATA_NAME
--device_target
$DEVICE_TARGET
&> scripts/train_standalone_log &
if
[
"
$DEVICE_TARGET
"
=
"GPU"
]
;
then
export
CUDA_VISIBLE_DEVICES
=
$2
python preprocess_dataset.py
--dataset
$DATA_NAME
--device_target
$DEVICE_TARGET
&> scripts/train_standalone_log
&&
python train.py
--dataset
$DATA_NAME
--device_target
$DEVICE_TARGET
--device_id
0 &>> scripts/train_standalone_log &
fi
if
[
"
$DEVICE_TARGET
"
=
"Ascend"
]
;
then
export
DEVICE_ID
=
$2
python preprocess_dataset.py
--dataset
$DATA_NAME
--device_target
$DEVICE_TARGET
&> scripts/train_standalone_log
&&
python train.py
--dataset
$DATA_NAME
--device_target
$DEVICE_TARGET
--device_id
$DEVICE_ID
&>> scripts/train_standalone_log &
fi
\ No newline at end of file
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