forked from mindspore-Ecosystem/mindspore
[MSLITE] fix arithmetic 'scalar_opt_' status not reset bug
This commit is contained in:
parent
c4b52ab8af
commit
dbe4a6c89e
|
@ -295,6 +295,7 @@ void ArithmeticBaseCPUKernel::ComputeOfflineInfo() {
|
|||
c_matric_.batch_post_sum[i] = c_matric_.shape[i] * c_matric_.batch_post_sum[i + 1];
|
||||
}
|
||||
}
|
||||
scalar_opt_ = false;
|
||||
if (a_matric_.inner_size == 1) {
|
||||
param_->in_elements_num0_ = 1;
|
||||
scalar_opt_ = true;
|
||||
|
|
Loading…
Reference in New Issue