Skip to content

Commit 9f62ee0

Browse files
committed
Prevent anymap from trying to parse u8 type
1 parent 23462bb commit 9f62ee0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/cpp/src/tasks/classification.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ void Classification::serialize(std::shared_ptr<ov::Model>& ov_model) {
113113
scale_values = utils::get_from_any_maps("scale_values", config, ov::AnyMap{}, scale_values);
114114
mean_values = utils::get_from_any_maps("mean_values", config, ov::AnyMap{}, mean_values);
115115
uint8_t pad_value = 0;
116-
pad_value = utils::get_from_any_maps("pad_value", config, ov::AnyMap{}, pad_value);
116+
pad_value = utils::get_from_any_maps<unsigned>("pad_value", config, ov::AnyMap{}, pad_value);
117117
bool reverse_input_channels = false;
118118
reverse_input_channels =
119119
utils::get_from_any_maps("reverse_input_channels", config, ov::AnyMap{}, reverse_input_channels);

0 commit comments

Comments
 (0)