broadcast_concat

tfsnippet.ops.broadcast_concat(x, y, axis, name=None)

Broadcast x and y, then concat them along axis.

This method cannot deal with all possible situations yet. x and y must have known number of dimensions, and only the deterministic axes will be broadcasted. You must ensure the non-deterministic axes are properly broadcasted by yourself.

Parameters:
  • x – The tensor x.
  • y – The tensor y.
  • axis – The axis to be concatenated.
  • name (str) – Default name of the name scope. If not specified, generate one according to the method name.
Returns:

The broadcast and concatenated tensor.

Return type:

tf.Tensor