fixed reduce gpu bug

This commit is contained in:
huoxinyou 2022-11-29 20:34:06 +08:00
parent 6d9fdaacc1
commit 3ba89db16e
1 changed files with 2 additions and 0 deletions

View File

@ -179,6 +179,8 @@ void ArrayReduceGpuKernelMod::InitCudnnResource() {
int ArrayReduceGpuKernelMod::Resize(const BaseOperatorPtr &base_operator, const std::vector<KernelTensorPtr> &inputs,
const std::vector<KernelTensorPtr> &outputs,
const std::map<uint32_t, tensor::TensorPtr> &inputsOnHost) {
need_skip_execute_ = false;
all_match_ = false;
int ret = KernelMod::Resize(base_operator, inputs, outputs, inputsOnHost);
if (ret != KRET_OK) {
InitCudnnResource();