Skip to content

Commit e752031

Browse files
authored
Update src/frontends/tensorflow_common/src/op/const.cpp
1 parent 3a6b5bc commit e752031

File tree

1 file changed

+1
-1
lines changed
  • src/frontends/tensorflow_common/src/op

1 file changed

+1
-1
lines changed

src/frontends/tensorflow_common/src/op/const.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ OutputVector translate_const_op(const NodeContext& node) {
3030
}
3131
} else {
3232
auto tensor = node.get_attribute<Tensor>("value");
33-
const_node = std::make_shared<v0::Constant>(tensor.get_element_type(), tensor.get_shape(), tensor.data());
33+
const_node = std::make_shared<v0::Constant>(tensor);
3434
}
3535
set_node_name(node.get_name(), const_node);
3636
return {const_node};

0 commit comments

Comments
 (0)