class_docstr: Tests for the load_and_remap_matrix() op.
docstr: Tests that errors are raised with incorrect number of init values.
docstr_tok: ["Tests","that","errors","are","raised","with","incorrect","number","of","init","values","."]
code: def test_load_and_remap_incorrect_initializing_values(self):
      """Tests that errors are raised with incorrect number of init values."""
      remapped_matrix = gen_checkpoint_ops.load_and_remap_matrix(
          ckpt_path=[self.bundle_file],
          old_tensor_name=self.old_tensor_name,
          row_remapping=[2, -1, 0],
          col_remapping=[1, -1],
          # Too few initializing values - there should be 4. For some reason,
          # initializing_values must contain no element (instead of 3 or fewer) to
          # ensure that a seg fault would reliably occur if the check raising the
          # InvalidArgumentError were not present.
          initializing_values=[],
          num_rows=3,
          num_cols=2,
      )
      with self.cached_session(), self.assertRaises(
          errors.InvalidArgumentError
      ):
          self.evaluate(remapped_matrix)
  
      remapped_matrix = gen_checkpoint_ops.load_and_remap_matrix(
          ckpt_path=[self.bundle_file],
          old_tensor_name=self.old_tensor_name,
          row_remapping=[2, -1, 0],
          col_remapping=[1, -1],
          # Too many initializing values - there should be 4.
          initializing_values=[0] * 5,
          num_rows=3,
          num_cols=2,
      )
      with self.cached_session(), self.assertRaises(
          errors.InvalidArgumentError
      ):
          self.evaluate(remapped_matrix)
  
imports: import os
  import numpy
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import ops
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import gen_checkpoint_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 flags
  from tensorflow.python.platform import test
  from tensorflow.python.training import saver
label_desc: Use image node_id 8 for calling the LoadAndRemapMatrixTest obj's underlying member method code with example usage: obj.test_load_and_remap_incorrect_initializing_values() without return types