functional
Structs
Functions
backward
backward(arg: Array, create_graph: Bool)
jacrev
jacrev(arg: Array, create_graph: Bool)
grad
grad(outs: List[Array], inputs: List[Array], retain_grads: Bool = True, create_graph: Bool = False) -> List[Array]
Computes gradients of outputs with respect to inputs.
grad(f: Callable, argnums: List[Int] = List(-1)) -> Callable
Computes the gradient of a Callable function with respect to specified arguments.
grad(f: fn(List[Array]) raises -> Array, argnums: List[Int] = List(-1)) -> Callable
Computes the gradient of a function that takes a list of Arrays and returns an Array.
grad(f: fn(Array) raises -> Array, argnums: List[Int] = List(-1)) -> Callable
Computes the gradient of a function that takes a single Array and returns an Array.
jacobian
jacobian(f: Callable, argnums: List[Int] = List(-1)) -> Callable
Computes the Jacobian of a Callable function with respect to specified arguments.
jacobian(f: fn(List[Array]) raises -> Array, argnums: List[Int] = List(-1)) -> Callable
Computes the Jacobian of a function that takes a list of Arrays and returns an Array.
jacobian(f: fn(Array) raises -> Array, argnums: List[Int] = List(-1)) -> Callable
Computes the Jacobian of a function that takes a single Array and returns an Array.
jacobian(f: Callable, args: List[Array]) -> List[Array]
Computes the Jacobian of a Callable function with respect to given arguments.
jacobian(f: fn(List[Array]) raises -> Array, args: List[Array]) -> List[Array]
Computes the Jacobian of a function that takes a list of Arrays with respect to given arguments.
jacobian(f: fn(Array) raises -> Array, arg: Array) -> Array
Computes the Jacobian of a function that takes a single Array with respect to the given argument.
hessian
hessian(f: Callable, argnums: List[Int] = List(-1)) -> Callable
Computes the Hessian of a Callable function with respect to specified arguments.
hessian(f: fn(List[Array]) raises -> Array, argnums: List[Int] = List(-1)) -> Callable
Computes the Hessian of a function that takes a list of Arrays and returns an Array.
hessian(f: fn(Array) raises -> Array, argnums: List[Int] = List(-1)) -> Callable
Computes the Hessian of a function that takes a single Array and returns an Array.
hessian(f: Callable, args: List[Array]) -> List[Array]
Computes the Hessian of a Callable function with respect to given arguments.
hessian(f: fn(List[Array]) raises -> Array, args: List[Array]) -> List[Array]
Computes the Hessian of a function that takes a list of Arrays with respect to given arguments.
hessian(f: fn(Array) raises -> Array, arg: Array) -> Array
Computes the Hessian of a function that takes a single Array with respect to the given argument.
value_and_grad
value_and_grad(arg: Variant[Callable, fn(List[Array]) raises -> Array], argnums: List[Int] = List(-1)) -> Callable
Last updated on