Method: Transformers::PreTrainedModel#post_init

Defined in:
lib/transformers/modeling_utils.rb

#post_initObject



154
155
156
157
# File 'lib/transformers/modeling_utils.rb', line 154

def post_init
  init_weights
  _backward_compatibility_gradient_checkpointing
end