# How to use ForwardDiff.GradientConfig for multiple input functions while calculating gradients in parallel

**URL:** https://discourse.julialang.org/t/how-to-use-forwarddiff-gradientconfig-for-multiple-input-functions-while-calculating-gradients-in-parallel/30370
**Category:** New to Julia
**Created:** [October 27, 2019, 6:35pm UTC](https://discourse.julialang.org/t/how-to-use-forwarddiff-gradientconfig-for-multiple-input-functions-while-calculating-gradients-in-parallel/30370 "2019-10-27T18:35:50Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![Tamas\_Papp](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tamas_papp/32/25949_2.png) [@Tamas\_Papp](https://discourse.julialang.org/u/Tamas_Papp)
#### Post date: [October 28, 2019, 4:54am UTC](https://discourse.julialang.org/t/how-to-use-forwarddiff-gradientconfig-for-multiple-input-functions-while-calculating-gradients-in-parallel/30370/2 "2019-10-28T04:54:46Z")

</div>

I am not sure if I understood your question, but `ForwardDiff.GradientConfig` is not used to select dimensions for differentiation, but for selecting things like chunk size:

[http://www.juliadiff.org/ForwardDiff.jl/stable/user/advanced.html#Configuring-Chunk-Size-1](http://www.juliadiff.org/ForwardDiff.jl/stable/user/advanced.html#Configuring-Chunk-Size-1)

If you want derivatives along a subset of the input, use a closure.

If you need more help, please post a self-contained MWE.

> [@Please read: make it easier to help you](https://discourse.julialang.org/t/psa-make-it-easier-to-help-you/14757):
>
> Welcome to the Julia Discourse! We are enthusiastic about helping Julia programmers, both beginner and experienced. This public service announcement (PSA) outlines best practices when asking for help. Following these points makes it easier for us to help you and more likely you’ll get a prompt, useful answer. Keywords are highlighted to make it easier to refer to specific points. Choose a descriptive title that captures the key part of your question, eg “plots with multiple axes” instead of …

---

_[View the full topic](https://discourse.julialang.org/t/how-to-use-forwarddiff-gradientconfig-for-multiple-input-functions-while-calculating-gradients-in-parallel/30370)._
