ed.dot

Aliases:

  • ed.dot
  • ed.util.dot
dot(
    x,
    y
)

Defined in edward/util/tensorflow.py.

Compute dot product between a 2-D tensor and a 1-D tensor.

If x is a [M x N] matrix, then y is a M-vector.

If x is a M-vector, then y is a [M x N] matrix.

Args:

  • x: tf.Tensor. A 1-D or 2-D tensor (see above).
  • y: tf.Tensor. A 1-D or 2-D tensor (see above).

Returns:

tf.Tensor. A 1-D tensor of length N.

Raises:

InvalidArgumentError. If the inputs have Inf or NaN values.