Jax: detach() or stop_gradient() equivalent?

Created on 18 Jan 2020  路  2Comments  路  Source: google/jax

If we want certain jax array to be invariant to gradient operator, what is the jax equivalent that we can use (in PyTorch detach() function or in tensorflow stop_gradient() operator works)?

question

Most helpful comment

All 2 comments

Thanks!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

murphyk picture murphyk  路  3Comments

alexbw picture alexbw  路  3Comments

kunc picture kunc  路  3Comments

clemisch picture clemisch  路  3Comments

harshit-2115 picture harshit-2115  路  3Comments