Simplify trainable
, functor
and Parallel
#1862
Merged
trainable
, functor
and Parallel
#1862