In the TensorFlow backend, we use a global method function TRAIN_FLAG()
to determine if things like dropout should be applied. If the user is running mead
to train (which is the typical case), this flag is automatically defined as a boolean that will default False
(meaning no dropout will be applied).
We provide a method which allows the user to override the value of the TRAIN_FLAG()
on demand.