docstr: Tests 3x1x2 permutation with hashed output.
docstr_tok: ["Tests","3x1x2","permutation","with","hashed","output","."]
code: def test_hashed_3x1x2(self):
      """Tests 3x1x2 permutation with hashed output."""
      sp_inp_1 = self._sparse_tensor(
          [["batch1-FC1-F1", "batch1-FC1-F2", "batch1-FC1-F3"]]
      )
      sp_inp_2 = self._sparse_tensor([["batch1-FC2-F1"]])
      sp_inp_3 = self._sparse_tensor(
          [["batch1-FC3-F1", "batch1-FC3-F2"]]
      )
      inds, vals, shapes = gen_sparse_ops.sparse_cross_hashed(
          indices=[
              sp_inp_1.indices,
              sp_inp_2.indices,
              sp_inp_3.indices,
          ],
          values=[sp_inp_1.values, sp_inp_2.values, sp_inp_3.values],
          shapes=[
              sp_inp_1.dense_shape,
              sp_inp_2.dense_shape,
              sp_inp_3.dense_shape,
          ],
          dense_inputs=[],
          num_buckets=1000,
          salt=[137, 173],
          strong_hash=False,
      )
      output = sparse_tensor.SparseTensor(inds, vals, shapes)
      with self.cached_session():
          out = self.evaluate(output)
          self.assertEqual(6, len(out.values))
          self.assertAllEqual([[0, i] for i in range(6)], out.indices)
          self.assertTrue(all(x < 1000 and x >= 0 for x in out.values))
          all_values_are_different = len(out.values) == len(
              set(out.values)
          )
          self.assertTrue(all_values_are_different)
  
imports: import numpy
  from tensorflow.python.client import session
  from tensorflow.python.framework import constant_op
  from tensorflow.python.framework import dtypes
  from tensorflow.python.framework import errors
  from tensorflow.python.framework import sparse_tensor
  from tensorflow.python.framework import test_util
  from tensorflow.python.ops import array_ops
  from tensorflow.python.ops import gen_sparse_ops
  from tensorflow.python.ops import sparse_ops
  from tensorflow.python.platform import test
label_desc: Use image node_id 4 for calling the SparseCrossHashedOpTest obj's underlying member method code with example usage: obj.test_hashed_3x1x2() without return types