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
03294cfb
Unverified
Commit
03294cfb
authored
2 years ago
by
i-robot
Committed by
Gitee
2 years ago
Browse files
Options
Downloads
Plain Diff
!3030 fix train for scop
Merge pull request !3030 from 185******25/master
parents
7538e31b
d8f08592
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
official/cv/resnet/golden_stick/pruner/scop/train.py
+2
-1
2 additions, 1 deletion
official/cv/resnet/golden_stick/pruner/scop/train.py
with
2 additions
and
1 deletion
official/cv/resnet/golden_stick/pruner/scop/train.py
+
2
−
1
View file @
03294cfb
...
...
@@ -25,7 +25,8 @@ from mindspore.communication.management import init, get_rank
from
mindspore.parallel
import
set_algo_parameters
from
mindspore.train.loss_scale_manager
import
FixedLossScaleManager
from
mindspore.nn.loss
import
SoftmaxCrossEntropyWithLogits
from
mindspore_gs
import
PrunerKfCompressAlgo
,
PrunerFtCompressAlgo
,
KfConv2d
,
MaskedConv2dbn
from
mindspore_gs
import
PrunerKfCompressAlgo
,
PrunerFtCompressAlgo
from
mindspore_gs.pruner.scop.scop_pruner
import
KfConv2d
,
MaskedConv2dbn
from
src.lr_generator
import
get_lr
from
src.CrossEntropySmooth
import
CrossEntropySmooth
from
src.resnet
import
conv_variance_scaling_initializer
...
...
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