# tfl.lattice_lib.batch_outer_operation

<br />

|---|
| [![](https://www.tensorflow.org/images/GitHub-Mark-32px.png) View source on GitHub](https://github.com/tensorflow/lattice/blob/v2.1.1/tensorflow_lattice/python/lattice_lib.py#L275-L334) |

Computes outer operation of last dimensions of each of given tensors.

    tfl.lattice_lib.batch_outer_operation(
        list_of_tensors, operation='auto'
    )

<br />

<br />

<br />

| ## Args ||
|---|---|
| `list_of_tensors` | List of tensors of same shape `(batch_size, ..., k[i])` where everything expect `k_i` matches. |
| `operation` | <br /> - binary TF operation which supports broadcasting to be applied. - string "auto" in order to apply tf.multiply for first several tensors and tf.matmul for remaining. |

<br />

<br />

<br />

| ## Returns ||
|---|---|
| Tensor of shape: `(batch_size, ..., mul_i(k[i]))`. ||

<br />