Skip to content

Does we need to mark GraphDef as static_argnums for jit? #4468

Closed Answered by cgarciae
Tomas542 asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @Tomas542, there two things going on here:

  1. The graphdef contains all the structural information: topology of the object graph, all metadata fields like strings, integers, etc, that you would pass as a static_argnum if you passed them individually.

  2. You can mark graphdef as a static_argnum if you want but there is no need because we use jax.tree_util.register_static over NodeDef so JAX will understand that its a static structure with no Arrays.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Tomas542
Comment options

Answer selected by Tomas542
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