gpflow.utilities.ops#

Functions#

gpflow.utilities.ops.broadcasting_elementwise#

gpflow.utilities.ops.broadcasting_elementwise(op, a, b)[source]#

Apply binary operation op to every pair in tensors a and b.

Parameters
  • op (Callable[[Tensor, Tensor], Tensor]) – binary operator on tensors, e.g. tf.add, tf.substract

  • a (Tensor) – tf.Tensor, shape [n_1, …, n_a]

  • b (Tensor) – tf.Tensor, shape [m_1, …, m_b]

Return type

Tensor

Returns

tf.Tensor, shape [n_1, …, n_a, m_1, …, m_b]