Skip to content

Struggling to understand this error: ValueError: [eval] Attempting to eval an array without a primitive. #1047

Answered by awni
ali-shihab asked this question in Q&A
Discussion options

You must be logged in to vote

In the case of the step function, isn't state implicitly captured as input & output in compile ? Since state = [model.state, optimizer.state]

There should be some other state you are using. The common one that people miss is the RNG state if they are using the global RNG. See here for example. If that's not it, I don't know why it's throwing that error for you. I'd be happy to take a look if you are able to share some code to reproduce.

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@ali-shihab
Comment options

@awni
Comment options

Answer selected by ali-shihab
@ali-shihab
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