diff --git a/src/plugins/intel_gpu/src/graph/one_hot.cpp b/src/plugins/intel_gpu/src/graph/one_hot.cpp index e9613f360fd380..bb90e3bf1276b5 100644 --- a/src/plugins/intel_gpu/src/graph/one_hot.cpp +++ b/src/plugins/intel_gpu/src/graph/one_hot.cpp @@ -71,9 +71,7 @@ std::vector one_hot_inst::calc_output_layouts(const one_hot_node& /*node std::unordered_map const_data = {}; if (depth != 0) { auto depth_tensor = ov::Tensor(ov::element::i64, ov::Shape{1}, static_cast(&depth)); - const_data = { - {1, depth_tensor} - }; + const_data[1] = depth_tensor; } else if (memory_deps.count(1) > 0) { auto depth_mem = memory_deps.at(1);