aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/g3doc/api_docs/python/functions_and_classes/shard9/tf.contrib.framework.remove_squeezable_dimensions.md
blob: b444be2e1cebe7e05536ecde3ea5f2edcf725118 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
### `tf.contrib.framework.remove_squeezable_dimensions(predictions, labels, name=None)` {#remove_squeezable_dimensions}

Squeeze last dim if ranks of `predictions` and `labels` differ by 1.

This will use static shape if available. Otherwise, it will add graph
operations, which could result in a performance hit.

##### Args:


*  <b>`predictions`</b>: Predicted values, a `Tensor` of arbitrary dimensions.
*  <b>`labels`</b>: Label values, a `Tensor` whose dimensions match `predictions`.
*  <b>`name`</b>: Name of the op.

##### Returns:

  Tuple of `predictions` and `labels`, possibly with last dim squeezed.