We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3a6b5bc commit e752031Copy full SHA for e752031
src/frontends/tensorflow_common/src/op/const.cpp
@@ -30,7 +30,7 @@ OutputVector translate_const_op(const NodeContext& node) {
30
}
31
} else {
32
auto tensor = node.get_attribute<Tensor>("value");
33
- const_node = std::make_shared<v0::Constant>(tensor.get_element_type(), tensor.get_shape(), tensor.data());
+ const_node = std::make_shared<v0::Constant>(tensor);
34
35
set_node_name(node.get_name(), const_node);
36
return {const_node};
0 commit comments