About jnp.where to control two different parts of network #1381
Unanswered
lucasliunju
asked this question in
Q&A
Replies: 1 comment
-
I'm a bit confused by the error message but your problem is that you cannot apply jnp.where on a tree so should probably use:
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, I would like to use jnp.where to control two parts of network. More specially, I use:
To contro whether we need to communicate with other hosts at each step "t".
I try to print "t":
Traced<ShapedArray(float32[])>with<DynamicJaxprTrace(level=0/1)>
However, the error is:
ValueError: entry not a 2- or 3- tuple
Could you give me some advice, thank you!
Yong
Beta Was this translation helpful? Give feedback.
All reactions