[GPU] fix uninitialized scalar variable (#18199)

* fix uninitialized scalar variable

* fix get_default_params
This commit is contained in:
Andrei Gorbachev 2023-07-05 07:29:04 +01:00 committed by GitHub
parent 0081fd4655
commit c58bf68bc8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -237,7 +237,7 @@ public:
bool has_value;
ib >> has_value;
if (has_value) {
data_types data_type;
data_types data_type = data_types();
ib >> make_data(&data_type, sizeof(data_types));
output_data_types.emplace_back(optional_data_type(data_type));
} else {

View File

@ -133,7 +133,7 @@ void set_weight_bias_zero_point_default_params(const kernel_impl_params& param_i
template <typename params_t>
inline params_t get_default_params(const kernel_impl_params& param_info, bool is_shape_agnostic = false) {
params_t params;
params_t params = params_t();
set_default_params(param_info, params, is_shape_agnostic);
return params;
}