tf.contrib.gan.features.condition_tensor(
tensor,
conditioning
)
Defined in tensorflow/contrib/gan/python/features/python/conditioning_utils_impl.py
.
Condition the value of a tensor.
Conditioning scheme based on https://arxiv.org/abs/1609.03499.
Args:
tensor
: A minibatch tensor to be conditioned.conditioning
: A minibatch Tensor of to condition on. Must be 2D, with first dimension the same astensor
.
Returns:
tensor
conditioned on conditioning
.
Raises:
ValueError
: If the non-batch dimensions oftensor
aren't fully defined.ValueError
: Ifconditioning
isn't at least 2D.ValueError
: If the batch dimension for the input Tensors don't match.