W3cubDocs

/TensorFlow Python

tf.broadcast_static_shape(shape_x, shape_y)

tf.broadcast_static_shape(shape_x, shape_y)

See the guide: Tensor Transformations > Shapes and Shaping

Returns the broadcasted static shape between shape_x and shape_y.

Args:

  • shape_x: A TensorShape
  • shape_y: A TensorShape

Returns:

A TensorShape representing the broadcasted shape.

Raises:

  • ValueError: If the two shapes can not be broadcasted.

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

© 2017 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/broadcast_static_shape