Skip to content

Commit

Permalink
Using shared memory for constant value passing
Browse files Browse the repository at this point in the history
Co-authored-by: Jan Iwaszkiewicz <[email protected]>
  • Loading branch information
cavusmustafa and Jan Iwaszkiewicz authored Oct 11, 2023
1 parent 3736fca commit 1b02890
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def as_constant(self):
if self.pt_module.op == 'get_attr':
# Extract Constant from FX module field
ret = fetch_attr(self.fx_gm, self.pt_module.target)
ov_const = make_constant(ret.numpy())
ov_const = op.Constant(ret.numpy(), shared_memory=True)
return ov_const.outputs()


Expand Down

0 comments on commit 1b02890

Please sign in to comment.