class_docstr: Solver for raw tensorflow model.
class_docstr_tok: ["Solver","for","raw","tensorflow","model","."]
docstr: Make the variables of the pretrained model untrainable
docstr_tok: ["Make","the","variables","of","the","pretrained","model","untrainable"]
code: def remove_trainable_variables(self, init_set):
      """
      Make the variables of the pretrained model untrainable
      """
  
      variables_to_untrain = list()
      trainable_collection = tf.get_collection_ref(
          tf.GraphKeys.TRAINABLE_VARIABLES
      )
      for var in trainable_collection:
          if var in init_set:
              variables_to_untrain.append(var)
  
      for var in variables_to_untrain:
          trainable_collection.remove(var)
  
file_path: delta/delta/utils/solver/raw_pretrain_seq_label_solver.py
imports: import re
  import delta.compat
  from absl import logging
  from tensorflow_addons.text import crf_decode
  from delta.utils.register import registers
  from delta.utils.solver.raw_solver import RawSolver
label_desc: Use image node_id 4 for calling the PretrainRawSeqLabelSolver obj's underlying member method code with example usage: obj.remove_trainable_variables(init_set) without return types