This website works better with JavaScript.
Home
Issues
Pull Requests
Milestones
AI流水线
Repositories
Datasets
Forum
实训
竞赛
大数据
AI开发
Register
Sign In
zzy34407230
/
mindspore2022
Not watched
Unwatch
Watch all
Watch but not notify
1
Star
0
Fork
0
Code
Releases
22
Wiki
evaluate
Activity
Issues
0
Pull Requests
0
Datasets
Model
Cloudbrain
HPC
Browse Source
[bugfix]random sample op accu is wrong
tags/v1.3.0
lizhenyu
4 years ago
parent
942b8cdd53
commit
78329860e1
1 changed files
with
4 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+4
-0
mindspore/ccsrc/backend/kernel_compiler/gpu/random/uniform_candidate_sampler_gpu_kernel.h
+ 4
- 0
mindspore/ccsrc/backend/kernel_compiler/gpu/random/uniform_candidate_sampler_gpu_kernel.h
View File
@@ -119,6 +119,10 @@ class UniformCandidateSamplerGpuKernel : public GpuKernel {
if (init_seed_ == 0 && cur_seed_ != 0) {
cur_seed_ = 0;
}
if (init_seed_ != 0) {
generator_.seed(init_seed_);
}
}
protected:
Write
Preview
Loading…
Cancel
Save