trainmode!

function defined in module Flux


			trainmode!(model) -> model

Set a layer, or all layers in a model, to training mode. Opposite to testmode!, see further details there.


			trainmode!(m, active)
Warning

This two-argument method is deprecated.

Possible values of active are:

  • true for training, or

  • false for testing, same as testmode! (m)

  • :auto or nothing for Flux to detect training automatically.

Methods