During job training, some parameters need to be loaded from a pre-trained model to initialize the current model. You can use the following methods to load the parameters:
from moxing.tensorflow.utils.hyper_param_flags import mox_flags print(mox_flags.get_help())
checkpoint_include_patterns: Variables names patterns to include when restoring checkpoint. Such as: conv2d/weights. checkpoint_exclude_patterns: Variables names patterns to include when restoring checkpoint. Such as: conv2d/weights.
--trainable_exclude_patterns: Variables names patterns to exclude for trainable variables. Such as: conv1,conv2. --trainable_include_patterns: Variables names patterns to include for trainable variables. Such as: logits.