tf.contrib.framework.with_same_shape()

tf.contrib.framework.with_same_shape(expected_tensor, tensor)

Assert tensors are the same shape, from the same graph.

Args:
  • expected_tensor: Tensor with expected shape.
  • tensor: Tensor of actual values.
Returns:

Tuple of (actual_tensor, label_tensor), possibly with assert ops added.

doc_TensorFlow
2016-10-14 13:04:50
Comments
Leave a Comment

Please login to continue.