forked from huawei/mindspore2022
!21989 Bugfix for RandomReal cpu kernel.
Merge pull request !21989 from chengang/random_real_bug_fix
This commit is contained in:
commit
d08e4ec03b
|
|
@ -99,7 +99,7 @@ void LaunchUniformReal(unsigned int seed, const std::vector<AddressPtr> &inputs,
|
|||
MS_LOG(EXCEPTION) << "Expect output number 1, actual got output number " << outputs.size();
|
||||
}
|
||||
// Init output address.
|
||||
auto output = reinterpret_cast<int *>(outputs[0]->addr);
|
||||
auto output = reinterpret_cast<float *>(outputs[0]->addr);
|
||||
MS_EXCEPTION_IF_NULL(output);
|
||||
|
||||
// Init sample number.
|
||||
|
|
|
|||
Loading…
Reference in New Issue