You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The class is responsible for ensuring that that vectorcall matches tp_call. Unfortunately, that's hard to do for mutable classes, where tp_call can be overridden by users. Consider making the class immutable.
It'll be changed in 3.12, see the change note: https://docs.python.org/3.12/c-api/call.html#the-vectorcall-protocol
It appears that when the type of an object has JAX_TPFLAGS_HAVE_VECTORCALL set on tp_flags, then overrides to call from within python are ignored.
I encountered this bug when using the latest version of JAX, which introduced vectorcalls in tensorflow/tensorflow@bf3eb11 :
The text was updated successfully, but these errors were encountered: