class_docstr: Tests for the functionality of the Python wrappers.
docstr: Tests where the zeros_initializer default is used for linear.
docstr_tok: ["Tests","where","the","zeros_initializer","default","is","used","for","linear","."]
code: def test_load_and_remap_linear_multiclass_initializer_default_init(
      self,
  ):
      """Tests where the zeros_initializer default is used for linear."""
      loading_initializer = (
          checkpoint_ops._load_and_remap_matrix_initializer(
              new_row_vocab_size=5,
              new_col_vocab_file=self.new_class_vocab_file,
              old_col_vocab_file=self.old_class_vocab_file,
              new_col_vocab_size=4,
              old_tensor_name="some_scope/embeddings",
              ckpt_path=[self.checkpoint_file],
              new_row_vocab_file=self.new_feature_vocab_file,
              old_row_vocab_file=self.old_feature_vocab_file,
              num_row_oov_buckets=1,
              num_col_oov_buckets=1,
          )
      )
  
      # Same as test_initializer_with_oov_only_partition, but with zero
      # initialization.
      expected_remapped_matrix = np.concatenate(
          [
              np.reshape([2, 18, 34, 50, 0, 0], [6, 1]),
              np.reshape([0, 16, 32, 48, 0, 0], [6, 1]),
              np.reshape([0] * 6, [6, 1]),
              np.reshape([1, 17, 33, 49, 0, 0], [6, 1]),
              np.reshape([0] * 6, [6, 1]),
          ],
          axis=1,
      )
      remapped_matrix = variable_scope.get_variable(
          name="linear_init_fallback/obtained_weight_matrix",
          shape=[6, 5],
          initializer=loading_initializer,
          partitioner=partitioned_variables.fixed_size_partitioner(2),
      )
  
      with self.cached_session():
          self.evaluate(variables.global_variables_initializer())
          self.assertAllClose(
              expected_remapped_matrix, remapped_matrix.as_tensor()
          )
  
imports: import os
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import init_ops
  from tensorflow.python.ops import partitioned_variables
  from tensorflow.python.ops import variable_scope
  from tensorflow.python.ops import variables
  from tensorflow.python.platform import test
  from tensorflow.python.training import checkpoint_ops
  from tensorflow.python.training import saver
label_desc: Use image node_id 6 for calling the LoadAndRemapWrappersTest obj's underlying member method code with example usage: obj.test_load_and_remap_linear_multiclass_initializer_default_init() without return types