Skip to content

How to run the contraction under the low memory constraint? #63

Answered by yangcal
rht asked this question in Q&A
Discussion options

You must be logged in to vote

Upon further investigation, we realized that the number of elements exceeding int32_t was due to slicing information not passed to optimize so that contract call did not slice at all. Two simple fixes:

  1. Replace optimize={"path": path} with optimize={'path': path, 'slicing': info.slices}
  2. Instead of a two-step contract_path and contract call, you can simply do contract(..., optimize=optimize_options). We internally pass both path and slicing.

Let us know if all the issues are resolved with the fixes. BTW, I think with the fix you won't need the custom optimize_options.

Replies: 2 comments 17 replies

Comment options

You must be logged in to vote
5 replies
@rht
Comment options

@yangcal
Comment options

@yangcal
Comment options

Answer selected by rht
@rht
Comment options

@rht
Comment options

Comment options

You must be logged in to vote
12 replies
@rht
Comment options

@yangcal
Comment options

@rht
Comment options

@yangcal
Comment options

@rht
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants