Tune in to the first Women in ML Symposium this Tuesday, October 19 at 9am PST Register now

tf.contrib.framework.with_same_shape

View source on GitHub

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

expected_tensor Tensor with expected shape.
tensor Tensor of actual values.

The original tensor argument, possibly with assert ops added.