Watch talks from the 2019 TensorFlow Dev Summit Watch now

tf.sparse.cross

tf.sparse.cross(
    inputs,
    name=None
)

Defined in tensorflow/python/ops/sparse_ops.py.

Generates sparse cross from a list of sparse and dense tensors.

For example, if the inputs are * inputs[0]: SparseTensor with shape = [2, 2]

  • inputs[1]: SparseTensor with shape = [2, 1]

  • inputs[2]: Tensor [["f"], ["g"]]

then the output will be: shape = [2, 2]

Args:

  • inputs: An iterable of Tensor or SparseTensor.
  • name: Optional name for the op.

Returns:

A SparseTensor of type string.