Skip to content

Commit

Permalink
Use the shared_memory parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
andrey-churkin committed Nov 20, 2023
1 parent 386b2f6 commit d401c3d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nncf/openvino/graph/model_transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,7 @@ def _set_const_value(node_with_const: ov.Node, const_port_id: int, const_value:

const_shape = const_node.data.shape
const_value = np.reshape(const_value, const_shape)
new_const_node = opset.constant(const_value, dtype=const_node.get_element_type())
new_const_node = opset.constant(const_value, dtype=const_node.get_element_type(), shared_memory=True)
new_const_node.set_friendly_name(const_node.get_friendly_name())
const_port.replace_source_output(new_const_node.output(0))

Expand Down

0 comments on commit d401c3d

Please sign in to comment.