Hi why can't I vectorize the condition function to apply for a list of boolean? or is there something else going on here? I was expecting it to giv ...
Hi why can't I vectorize the condition function to apply for a list of boolean? or is there something else going on here? I was expecting it to giv ...
I have some Jax code that requires using auto differentiation and in part of the code, I would like to call a function from a library written in NumPy ...
I am trying to get the Jacobian for a simple parameterization function within JAX. The code is as follows: Suppose I initialize eps to be a vector ...
I have written a function which evaluates the Laplace approximate marginal likelihood of complex mixed models. The implementation uses sparse matrices ...
This is a simple code to show the problem import torch X = torch.arange(-3, 3, step=0.1) Y = X * 3 Y += 0.1 * torch.randn(Y.shape) def my_train_mode ...
So I tried to make a minimum example to ask questions based on a more complicated piece of code I have written: A HUGE common error I'm getting is ...
As an exercise I am trying to build a custom operator in Tensorflow, and checking the gradient against Tensorflow's autodiff of the same forward opera ...
I'm trying to understand why im getting an error when using gradient tape to take the derivative of a function. Try to take the derivative of Power wi ...
Suppose we have some function y=x^2 We can then use gradient tape to automatically calculate the gradient for us (when we provide some values of x to ...
I want to compute the gradient w.r.t. the weights of a tf model but in only one direction: But it returns the following error: I think it is bec ...
I'm new to automatic differentiation programming, so this maybe a naive question. Below is a simplified version of what I'm trying to solve. I have t ...
In scientific computation, we often have to construct matrices that compute differential operators. It is often easier to write the code that applies ...
Does Jax support taking the derivate w.r.t. an index of a vector-valued variable? Consider this example (where a is a vector/array): I can pass in ...
The madness packages, as mentioned here, is nice for autodiff in R. I would like to compute now a derivative wrt x of a derivative wrt y. $\frac{\pa ...
I am exploring autodiff, and I would like to use Deriv for computing a derivative of a function wrt to a vector. I write Does anyone have a good wa ...
. Answers to this question are eligible for a +50 reputation bounty. fd ...
I would like to have the following: import _Differentiation struct S { var f: @differentiable(reverse) (Double, Double) -> Double } but the ...
Here is a minimal example: import _Differentiation @differentiable(reverse) func g(x: Double?) -> Double { if x == nil { return 0.0 ...
In order to understand JAX's reverse mode auto-diff I tried to write a custom_vjp for softmax like this: But when I call jacrev I get errors about ...
I see the current chapter of Underactuated: System Identification and the corresponding notebook, and it currently does it through symbolics. I'd lik ...