forked from mindspore-Ecosystem/mindspore
!19381 [bugfix]random sample op output is wrong
Merge pull request !19381 from zyli2020/bug_fix_ps_cache
This commit is contained in:
commit
c8b703c658
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue