Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe054d6 commit d7be8aaCopy full SHA for d7be8aa
src/ngraph/frontend/onnx_import/op/onehot.cpp
@@ -42,9 +42,9 @@ namespace ngraph
42
auto off_on_values =
43
std::make_shared<default_opset::Split>(values, split_axis, 2);
44
auto off_value =
45
- reshape::interpret_as_scalar(get_output_element(off_on_values, 0ul));
+ reshape::interpret_as_scalar(get_output_element(off_on_values, size_t{0}));
46
auto on_value =
47
- reshape::interpret_as_scalar(get_output_element(off_on_values, 1ul));
+ reshape::interpret_as_scalar(get_output_element(off_on_values, size_t{1}));
48
49
auto axis = node.get_attribute_value<std::int64_t>("axis", -1);
50
0 commit comments