# .setInputType(InputType.feedForward

**URL:** <https://community.konduit.ai/t/setinputtype-inputtype-feedforward/1129>\
**Category:** DL4J\
**Created:** [January 25, 2021, 12:56pm UTC](https://community.konduit.ai/t/setinputtype-inputtype-feedforward/1129 "2021-01-25T12:56:01Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![blablab1](https://avatars.discourse-cdn.com/v4/letter/b/b5e925/32.png) [@blablab1](https://community.konduit.ai/u/blablab1)\
**Post date:** [January 25, 2021, 12:56pm UTC](https://community.konduit.ai/t/setinputtype-inputtype-feedforward/1129/1 "2021-01-25T12:56:01Z")

</div>

Hi guys,  
does the line “.setInputType(InputType.feed” in the following code make the multilayernetwork to a feedforward multilayernetwork?

`MultiLayerConfiguration config = ` `new` `NeuralNetConfiguration.Builder()`

` ` `.seed(0xC0FFEE)`

` ` `.weightInit(WeightInit.XAVIER)`

` ` `.activation(Activation.TANH)`

` ` `.updater(` `new` `Adam.Builder().learningRate(0.001).build())`

` ` `.l2(0.0000316)`

` ` `.list(`

` ` `new` `DenseLayer.Builder().nOut(25).build(),`

` ` `new` `DenseLayer.Builder().nOut(25).build(),`

` ` `new` `DenseLayer.Builder().nOut(25).build(),`

` ` `new` `DenseLayer.Builder().nOut(25).build(),`

` ` `new` `DenseLayer.Builder().nOut(25).build(),`

` ` `new` `OutputLayer.Builder(` `new` `LossMCXENT()).nOut(2).activation(Activation.SOFTMAX).build()`

` ` `)`

` ` `.setInputType(InputType.feedForward(finalSchema.numColumns() - 1))`

` ` `.build();`

---

<div class="post-metadata">

**Author:** ![agibsonccc](https://yyz1.discourse-cdn.com/flex035/user_avatar/community.konduit.ai/agibsonccc/32/697_2.png) [@agibsonccc](https://community.konduit.ai/u/agibsonccc)\
**Post date:** [January 25, 2021, 12:58pm UTC](https://community.konduit.ai/t/setinputtype-inputtype-feedforward/1129/2 "2021-01-25T12:58:24Z")

</div>

@blablab1 this sets the input number of columns for all the various layers automatically by looking at each layer’s configuration and setting the number of inputs appropriately. That way you don’t have to manually calculate it.  
A 'feed forward network" (being a neural net that just processes 2d arrays) are in this case DenseLayers.
